diff --git a/src/platform/opengl/gl.c b/src/platform/opengl/gl.c index e941f705a..3d44c3da8 100644 --- a/src/platform/opengl/gl.c +++ b/src/platform/opengl/gl.c @@ -58,6 +58,10 @@ static void GBAGLContextResized(struct VideoBackend* v, int w, int h) { drawH = w * 2 / 3; } } + glMatrixMode(GL_MODELVIEW); + glLoadIdentity(); + glClearColor(0, 0, 0, 0); + glClear(GL_COLOR_BUFFER_BIT); glViewport((w - drawW) / 2, (h - drawH) / 2, drawW, drawH); }