X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftests.cpp;h=1a2a58352e2605a54669093c5cb4e2011557c774;hb=5172d32d67595ea0b70184fadcfcb8e023cccbc8;hp=a741b268a998dd31aa425f7df2f647a3095ab2b2;hpb=f17794d55923d4fb4f63e9d082d8d84a735a04e8;p=libs%2Fgl.git diff --git a/source/tests.cpp b/source/tests.cpp index a741b268..1a2a5835 100644 --- a/source/tests.cpp +++ b/source/tests.cpp @@ -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)