From 7bf6f6411c98e1ef750966e70fea67fe531ef35b Mon Sep 17 00:00:00 2001 From: raven02 Date: Thu, 10 Oct 2013 21:59:37 +0800 Subject: [PATCH] Set stencil ref value to 255 (8 bitplanes) 2^8-1=255 --- GPU/GLES/StateMapping.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/GLES/StateMapping.cpp b/GPU/GLES/StateMapping.cpp index fdf3258e82..5d2c94664e 100644 --- a/GPU/GLES/StateMapping.cpp +++ b/GPU/GLES/StateMapping.cpp @@ -286,7 +286,7 @@ void TransformDrawEngine::ApplyDrawState(int prim) { // TODO: In clear mode, the stencil value is set to the alpha value of the vertex. // A normal clear will be 2 points, the second point has the color. // We should set "ref" to that value instead of 0. - glstate.stencilFunc.set(GL_ALWAYS, 0, 0xFF); + glstate.stencilFunc.set(GL_ALWAYS, 255, 0xFF); } else glstate.stencilTest.disable();