Mercurial > mplayer.hg
diff libvo/matrixview.c @ 36242:406e87858d1f
Remove unused depth test code.
author | reimar |
---|---|
date | Wed, 12 Jun 2013 18:54:15 +0000 |
parents | 0cfa55e44ea5 |
children | 33b774ea1ae6 |
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);