From fd40bf7ada7bd94531259f8501d46763549654c0 Mon Sep 17 00:00:00 2001 From: raven02 Date: Sat, 3 Aug 2013 14:55:45 +0800 Subject: [PATCH] Use gstate.isClearModeDepthWriteEnabled/ColorMask/AlphaMask() --- GPU/GLES/StateMapping.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GPU/GLES/StateMapping.cpp b/GPU/GLES/StateMapping.cpp index 1afd68675..1b49abf87 100644 --- a/GPU/GLES/StateMapping.cpp +++ b/GPU/GLES/StateMapping.cpp @@ -214,14 +214,14 @@ void TransformDrawEngine::ApplyDrawState(int prim) { glstate.cullFace.set(GL_FALSE); // Depth Test - bool depthMask = (gstate.clearmode >> 10) & 1; + bool depthMask = gstate.isClearModeDepthWriteEnabled(); glstate.depthTest.enable(); glstate.depthFunc.set(GL_ALWAYS); glstate.depthWrite.set(depthMask ? GL_TRUE : GL_FALSE); // Color Test - bool colorMask = (gstate.clearmode >> 8) & 1; - bool alphaMask = (gstate.clearmode >> 9) & 1; + bool colorMask = gstate.isClearModeColorMask(); + bool alphaMask = gstate.isClearModeAlphaMask(); glstate.colorMask.set(colorMask, colorMask, colorMask, alphaMask); // Stencil Test