]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/tests.cpp
Decouple the Predicate enum from OpenGL constants
[libs/gl.git] / source / core / tests.cpp
index 8e24bb52facc436a0a75451a57726737a574bb22..e1ad526115b5386a8c5007cf1e7a9563f52d8498 100644 (file)
@@ -18,7 +18,7 @@ void DepthTest::bind() const
        if(set_current(this))
        {
                glEnable(GL_DEPTH_TEST);
-               glDepthFunc(pred);
+               glDepthFunc(get_gl_predicate(pred));
                glDepthMask(write);
        }
 }