comparison 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
comparison
equal deleted inserted replaced
36241:0cfa55e44ea5 36242:406e87858d1f
267 ourBuildTextures(); 267 ourBuildTextures();
268 268
269 // Color to clear color buffer to. 269 // Color to clear color buffer to.
270 mpglClearColor(0.0f, 0.0f, 0.0f, 0.0f); 270 mpglClearColor(0.0f, 0.0f, 0.0f, 0.0f);
271 271
272 // Depth to clear depth buffer to; type of test.
273 mpglClearDepth(1.0);
274 mpglDepthFunc(GL_LESS);
275
276 // Allow adjusting of texture color via glColor 272 // Allow adjusting of texture color via glColor
277 mpglTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); 273 mpglTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
278 274
279 mpglEnable(GL_BLEND); 275 mpglEnable(GL_BLEND);
280 mpglEnable(GL_TEXTURE_2D); 276 mpglEnable(GL_TEXTURE_2D);
281 277
282 mpglBlendFunc(GL_SRC_ALPHA, GL_ONE); 278 mpglBlendFunc(GL_SRC_ALPHA, GL_ONE);
283 mpglDisable(GL_DEPTH_TEST);
284 279
285 matrixview_reshape(w, h); 280 matrixview_reshape(w, h);
286 } 281 }
287 282
288 283
305 300
306 301
307 void matrixview_draw(double currentTime, const uint8_t *data) 302 void matrixview_draw(double currentTime, const uint8_t *data)
308 { 303 {
309 // Clear the color and depth buffers. 304 // Clear the color and depth buffers.
310 mpglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 305 mpglClear(GL_COLOR_BUFFER_BIT);
311 306
312 // OK, let's start drawing our planer quads. 307 // OK, let's start drawing our planer quads.
313 mpglBegin(GL_QUADS); 308 mpglBegin(GL_QUADS);
314 draw_text(data); 309 draw_text(data);
315 mpglEnd(); 310 mpglEnd();