X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftests.cpp;h=08580d4d80a0234758569dd62446d4d3b288a732;hb=fb5da1dff367740868f3cbc5badffb1b4837d82a;hp=a741b268a998dd31aa425f7df2f647a3095ab2b2;hpb=f17794d55923d4fb4f63e9d082d8d84a735a04e8;p=libs%2Fgl.git diff --git a/source/tests.cpp b/source/tests.cpp index a741b268..08580d4d 100644 --- a/source/tests.cpp +++ b/source/tests.cpp @@ -35,11 +35,6 @@ void AlphaTest::unbind() glDisable(GL_ALPHA_TEST); } -void alpha_func(Predicate func, float ref) -{ - glAlphaFunc(func, ref); -} - DepthTest::DepthTest(): write(true), @@ -70,12 +65,11 @@ const DepthTest &DepthTest::lequal() void DepthTest::unbind() { if(set_current(0)) + { glDisable(GL_DEPTH_TEST); -} - -void depth_func(Predicate func) -{ - glDepthFunc(func); + // Allow glClear(GL_DEPTH_BUFFER_BIT) to work + glDepthMask(true); + } } @@ -108,10 +102,5 @@ void ScissorTest::unbind() glDisable(GL_SCISSOR_TEST); } -void scissor(int left, int bottom, unsigned width, unsigned height) -{ - glScissor(left, bottom, width, height); -} - } // namespace GL } // namespace Msp