Don't launch pixel history on failure if the feature is not supported

This commit is contained in:
baldurk
2020-04-28 15:20:24 +01:00
parent 84a804f95d
commit 7d233f074c
+4 -1
View File
@@ -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;
}