mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Set stencil ref value to 255 (8 bitplanes) 2^8-1=255
This commit is contained in:
1 parent
db568e4553
commit
7bf6f6411c
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user