Fix double-delete of GL program. Refs #1406

This commit is contained in:
baldurk
2019-06-06 13:11:59 +01:00
parent 7c6921248f
commit f58f5dd406
+5 -2
View File
@@ -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]);
}
}
}