From 7d233f074cc78f052a2a03ae82cf0e0e0a57b1b4 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 28 Apr 2020 15:20:24 +0100 Subject: [PATCH] Don't launch pixel history on failure if the feature is not supported --- qrenderdoc/Windows/TextureViewer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qrenderdoc/Windows/TextureViewer.cpp b/qrenderdoc/Windows/TextureViewer.cpp index e12797658..85a74fc85 100644 --- a/qrenderdoc/Windows/TextureViewer.cpp +++ b/qrenderdoc/Windows/TextureViewer.cpp @@ -3805,7 +3805,10 @@ void TextureViewer::on_debugPixelContext_clicked() // if we couldn't debug the pixel on this event, open up a pixel history if(!trace) { - on_pixelHistory_clicked(); + if(m_Ctx.APIProps().pixelHistory) + on_pixelHistory_clicked(); + else + RDDialog::critical(this, tr("Debug Error"), tr("Error debugging pixel.")); return; }