changeset 36242:406e87858d1f

Remove unused depth test code.
author reimar
date Wed, 12 Jun 2013 18:54:15 +0000
parents 0cfa55e44ea5
children 33b774ea1ae6
files libvo/matrixview.c libvo/vo_matrixview.c
diffstat 2 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/matrixview.c	Wed Jun 12 18:54:14 2013 +0000
+++ b/libvo/matrixview.c	Wed Jun 12 18:54:15 2013 +0000
@@ -269,10 +269,6 @@
     // Color to clear color buffer to.
     mpglClearColor(0.0f, 0.0f, 0.0f, 0.0f);
 
-    // Depth to clear depth buffer to; type of test.
-    mpglClearDepth(1.0);
-    mpglDepthFunc(GL_LESS);
-
     // Allow adjusting of texture color via glColor
     mpglTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
 
@@ -280,7 +276,6 @@
     mpglEnable(GL_TEXTURE_2D);
 
     mpglBlendFunc(GL_SRC_ALPHA, GL_ONE);
-    mpglDisable(GL_DEPTH_TEST);
 
     matrixview_reshape(w, h);
 }
@@ -307,7 +302,7 @@
 void matrixview_draw(double currentTime, const uint8_t *data)
 {
     // Clear the color and depth buffers.
-    mpglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+    mpglClear(GL_COLOR_BUFFER_BIT);
 
     // OK, let's start drawing our planer quads.
     mpglBegin(GL_QUADS);
--- a/libvo/vo_matrixview.c	Wed Jun 12 18:54:14 2013 +0000
+++ b/libvo/vo_matrixview.c	Wed Jun 12 18:54:15 2013 +0000
@@ -105,7 +105,6 @@
     image_width  = width;
     image_format = format;
 
-    flags |= VOFLAG_DEPTH;
     if (mpglcontext_create_window(&glctx, d_width, d_height, flags, title) < 0)
         return -1;
     if (glctx.setGlWindow(&glctx) == SET_WINDOW_FAILED)