From ecb4de09a67b0c214546bb45e007b0b059135fba Mon Sep 17 00:00:00 2001 From: raven02 Date: Wed, 27 Feb 2013 22:36:09 +0800 Subject: [PATCH] Put ditherenable & alphaBlendEnable as function --- GPU/GLES/StateMapping.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPU/GLES/StateMapping.cpp b/GPU/GLES/StateMapping.cpp index 2374c6d563..1b377de734 100644 --- a/GPU/GLES/StateMapping.cpp +++ b/GPU/GLES/StateMapping.cpp @@ -94,7 +94,7 @@ void TransformDrawEngine::ApplyDrawState(int prim) { // single fullscreen pass that converts alpha to stencil (or 2 passes, to set both the 0 and 1 values) very easily. // Set blend - bool wantBlend = !gstate.isModeClear() && (gstate.alphaBlendEnable & 1); + bool wantBlend = !gstate.isModeClear() && gstate.isAlphaBlendEnabled(); glstate.blend.set(wantBlend); if (wantBlend) { // This can't be done exactly as there are several PSP blend modes that are impossible to do on OpenGL ES 2.0, and some even on regular OpenGL for desktop. @@ -166,7 +166,7 @@ void TransformDrawEngine::ApplyDrawState(int prim) { } // Set Dither - glstate.dither.set(gstate.ditherEnable & 1); + glstate.dither.set(gstate.isDitherEnabled()); // Set ColorMask/Stencil/Depth if (gstate.isModeClear()) {