Skip to content
Permalink
Browse files

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.
  • Loading branch information...
unknownbrackets committed Aug 6, 2018
1 parent 77f0499 commit 921727f1632bd56c5ab8d94aff34685f6488939b
Showing with 1 addition and 1 deletion.
  1. +1 −1 Windows/GEDebugger/VertexPreview.cpp
@@ -494,7 +494,7 @@ void CGEDebugger::UpdatePrimPreview(u32 op, int which) {
}

if (texPreviewVao == 0) {
glDisableVertexAttribArray(previewProgram->a_position);
glDisableVertexAttribArray(texPreviewProgram->a_position);
}

secondWindow->End();

0 comments on commit 921727f

Please sign in to comment.
You can’t perform that action at this time.