mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Fix double-delete of GL program. Refs #1406
This commit is contained in:
@@ -1138,8 +1138,11 @@ void GLReplay::DeleteDebugData()
|
||||
if(DebugData.histogramProgram[idx])
|
||||
drv.glDeleteProgram(DebugData.histogramProgram[idx]);
|
||||
|
||||
if(DebugData.minmaxResultProgram[i])
|
||||
drv.glDeleteProgram(DebugData.minmaxResultProgram[i]);
|
||||
if(t == 1)
|
||||
{
|
||||
if(DebugData.minmaxResultProgram[i])
|
||||
drv.glDeleteProgram(DebugData.minmaxResultProgram[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user