GE Debugger: Fix preview crash.

In some cases on first draw (e.g. from a test), this might be null and
crash.  It was supposed to be the other program.
This commit is contained in:
Unknown W. Brackets 2018-08-05 17:12:46 -07:00
parent 77f0499f7f
commit 921727f163

View File

@ -494,7 +494,7 @@ void CGEDebugger::UpdatePrimPreview(u32 op, int which) {
}
if (texPreviewVao == 0) {
glDisableVertexAttribArray(previewProgram->a_position);
glDisableVertexAttribArray(texPreviewProgram->a_position);
}
secondWindow->End();