mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-13 19:17:12 +00:00
Fix crash on GL after saving a texture to disk, wrong thread access
This commit is contained in:
@@ -3480,7 +3480,13 @@ void TextureViewer::on_saveTex_clicked()
|
||||
m_SaveConfig.resourceId = id;
|
||||
}
|
||||
|
||||
const ResourceId overlayTexID = m_Output->GetDebugOverlayTexID();
|
||||
ResourceId overlayTexID;
|
||||
if(m_TexDisplay.overlay != DebugOverlay::NoOverlay)
|
||||
{
|
||||
m_Ctx.Replay().BlockInvoke([this, &overlayTexID](IReplayController *r) {
|
||||
overlayTexID = m_Output->GetDebugOverlayTexID();
|
||||
});
|
||||
}
|
||||
const bool hasSelectedOverlay = (m_TexDisplay.overlay != DebugOverlay::NoOverlay);
|
||||
const bool hasOverlay = (hasSelectedOverlay && overlayTexID != ResourceId());
|
||||
TextureSaveDialog saveDialog(*texptr, hasOverlay, m_SaveConfig, this);
|
||||
|
||||
Reference in New Issue
Block a user