From 01fc74b3c9552893c93caf80fb4479f1b3a54b32 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Mon, 24 Nov 2014 23:08:03 +0600 Subject: [PATCH] Workaround for Mupen64Plus issue with initialization. --- VI.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/VI.cpp b/VI.cpp index ec2ec17d..07ec91e5 100644 --- a/VI.cpp +++ b/VI.cpp @@ -122,6 +122,13 @@ void VI_UpdateScreen() Debug.step = FALSE; #endif } + VI.lastOrigin = *REG.VI_ORIGIN; } + + if (VI.lastOrigin == 0) { // Workaround for Mupen64Plus issue with initialization + glClearColor(0.0f, 0.0f, 0.0f, 0.0f); + glClear(GL_COLOR_BUFFER_BIT); + } + glFinish(); }