]> git.tdb.fi Git - libs/gl.git/blobdiff - source/tests.cpp
Drop Id tags and copyright notices from files
[libs/gl.git] / source / tests.cpp
index a741b268a998dd31aa425f7df2f647a3095ab2b2..f8489ede9cfee6787520265d1bc5e1b5cc655a4a 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007, 2010  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include "tests.h"
 
 namespace Msp {
@@ -35,11 +28,6 @@ void AlphaTest::unbind()
                glDisable(GL_ALPHA_TEST);
 }
 
-void alpha_func(Predicate func, float ref)
-{
-       glAlphaFunc(func, ref);
-}
-
 
 DepthTest::DepthTest():
        write(true),
@@ -70,12 +58,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 +95,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