From 8280d6e9ae51fafb1be0afb3ae04447a8a091504 Mon Sep 17 00:00:00 2001 From: raven02 Date: Tue, 26 Mar 2013 14:50:37 +0800 Subject: [PATCH 1/2] Add glstate.dither.enable() --- GPU/GLES/StateMapping.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GPU/GLES/StateMapping.cpp b/GPU/GLES/StateMapping.cpp index 40df06998a..dac87dfbd9 100644 --- a/GPU/GLES/StateMapping.cpp +++ b/GPU/GLES/StateMapping.cpp @@ -183,8 +183,10 @@ void TransformDrawEngine::ApplyDrawState(int prim) { } // Set Dither - glstate.dither.set(gstate.isDitherEnabled()); - + if (gstate.isDitherEnabled()) { + glstate.dither.enable(); + glstate.dither.set(GL_TRUE); + } // Set ColorMask/Stencil/Depth if (gstate.isModeClear()) { From 719e225e7b2712b8783d5983ba486df719ad87b0 Mon Sep 17 00:00:00 2001 From: raven02 Date: Tue, 26 Mar 2013 15:36:13 +0800 Subject: [PATCH 2/2] Add glstate.dither.disable() --- GPU/GLES/StateMapping.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPU/GLES/StateMapping.cpp b/GPU/GLES/StateMapping.cpp index dac87dfbd9..053989b7b0 100644 --- a/GPU/GLES/StateMapping.cpp +++ b/GPU/GLES/StateMapping.cpp @@ -186,7 +186,8 @@ void TransformDrawEngine::ApplyDrawState(int prim) { if (gstate.isDitherEnabled()) { glstate.dither.enable(); glstate.dither.set(GL_TRUE); - } + } else + glstate.dither.disable(); // Set ColorMask/Stencil/Depth if (gstate.isModeClear()) {