From a6eb25b58c2f325c714949c7a6ad5351b7aef9bb Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 18 Nov 2012 02:48:15 +0100 Subject: [PATCH] Disable blend on clear mode --- GPU/GLES/DisplayListInterpreter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPU/GLES/DisplayListInterpreter.cpp b/GPU/GLES/DisplayListInterpreter.cpp index e70bd6b6fb..d927f94326 100644 --- a/GPU/GLES/DisplayListInterpreter.cpp +++ b/GPU/GLES/DisplayListInterpreter.cpp @@ -172,6 +172,7 @@ void EnterClearMode(u32 data) glColorMask(colMask, colMask, colMask, alphaMask); glDepthMask(updateZ); // Update Z or not // Note that depth test must be enabled for depth writes to go through! So we use GL_ALWAYS + glDisable(GL_BLEND); glEnable(GL_DEPTH_TEST); glDepthFunc(GL_ALWAYS); glDisable(GL_CULL_FACE); // ?? @@ -189,7 +190,7 @@ void LeaveClearMode() glColorMask(1,1,1,1); glEnDis(GL_DEPTH_TEST, gstate.zTestEnable & 1); glDepthFunc(GL_LEQUAL); // TODO - + glEnDis(GL_BLEND, gstate.alphaBlendEnable & 1); // dirtyshader? }