mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Don't launch pixel history on failure if the feature is not supported
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user