]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/stencil.cpp
Decouple the Predicate enum from OpenGL constants
[libs/gl.git] / source / core / stencil.cpp
index 9de8b1f0d66952dc25d15d1148a64daa885201a3..28d59f19aa97538cf8e443f31918015eef437753 100644 (file)
@@ -5,7 +5,7 @@ namespace GL {
 
 void stencil_func(Predicate func, int ref, unsigned mask)
 {
-       glStencilFunc(func, ref, mask);
+       glStencilFunc(get_gl_predicate(func), ref, mask);
 }
 
 void stencil_op(StencilOp sfail, StencilOp dfail, StencilOp dpass)