Set stencil ref value to 255 (8 bitplanes) 2^8-1=255

This commit is contained in:
raven02 committed 2013-10-10 21:59:37 +08:00
1 parent db568e4553
commit 7bf6f6411c
1 file changed
+1 -1
+1 -1
View File
@@ -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();