mirror of
https://github.com/izzy2lost/ppsspp.git
synced 2026-03-10 12:43:04 -07:00
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:
@@ -494,7 +494,7 @@ void CGEDebugger::UpdatePrimPreview(u32 op, int which) {
|
||||
}
|
||||
|
||||
if (texPreviewVao == 0) {
|
||||
glDisableVertexAttribArray(previewProgram->a_position);
|
||||
glDisableVertexAttribArray(texPreviewProgram->a_position);
|
||||
}
|
||||
|
||||
secondWindow->End();
|
||||
|
||||
Reference in New Issue
Block a user