]> git.tdb.fi Git - libs/gl.git/blobdiff - source/tests.cpp
Setting depth mask off in Framebuffer is not required
[libs/gl.git] / source / tests.cpp
index a741b268a998dd31aa425f7df2f647a3095ab2b2..1a2a58352e2605a54669093c5cb4e2011557c774 100644 (file)
@@ -70,7 +70,11 @@ const DepthTest &DepthTest::lequal()
 void DepthTest::unbind()
 {
        if(set_current(0))
+       {
                glDisable(GL_DEPTH_TEST);
+               // Allow glClear(GL_DEPTH_BUFFER_BIT) to work
+               glDepthMask(true);
+       }
 }
 
 void depth_func(Predicate func)