diff --git a/src/Cafe/HW/Latte/Renderer/OpenGL/OpenGLRenderer.cpp b/src/Cafe/HW/Latte/Renderer/OpenGL/OpenGLRenderer.cpp index c72d52ca..45068615 100644 --- a/src/Cafe/HW/Latte/Renderer/OpenGL/OpenGLRenderer.cpp +++ b/src/Cafe/HW/Latte/Renderer/OpenGL/OpenGLRenderer.cpp @@ -548,6 +548,9 @@ void OpenGLRenderer::DrawBackbufferQuad(LatteTextureView* texView, RendererOutpu renderstate_resetDepthControl(); attributeStream_reset(); + // bind back buffer + rendertarget_bindFramebufferObject(nullptr); + if (clearBackground) { int windowWidth, windowHeight; @@ -559,9 +562,6 @@ void OpenGLRenderer::DrawBackbufferQuad(LatteTextureView* texView, RendererOutpu g_renderer->ClearColorbuffer(padView); } - // bind back buffer - rendertarget_bindFramebufferObject(nullptr); - // calculate effective size sint32 effectiveWidth; sint32 effectiveHeight;