gallium: remove unneeded depth buffer
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 23 Nov 2007 14:49:54 +0000 (14:49 +0000)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Sun, 9 Dec 2007 14:05:12 +0000 (14:05 +0000)
progs/trivial/vbo-drawarrays.c
progs/trivial/vbo-drawelements.c

index fb590098a32e0e33fcbabc5fb8782787cfebc9e4..3eec9c472374ab76ad2173fa4cec063d7f39897a 100644 (file)
@@ -79,7 +79,7 @@ static void Init( void )
 static void Display( void )
 {
    glClearColor(0.3, 0.3, 0.3, 1);
-   glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
+   glClear( GL_COLOR_BUFFER_BIT);
 
    glEnable(GL_VERTEX_PROGRAM_ARB);
 
@@ -122,7 +122,7 @@ int main( int argc, char *argv[] )
    glutInit( &argc, argv );
    glutInitWindowPosition( 0, 0 );
    glutInitWindowSize( 250, 250 );
-   glutInitDisplayMode( GLUT_RGB | GLUT_SINGLE | GLUT_DEPTH );
+   glutInitDisplayMode( GLUT_RGB | GLUT_SINGLE);
    glutCreateWindow(argv[0]);
    glutReshapeFunc( Reshape );
    glutKeyboardFunc( Key );
index dddb45695cb558d66a330f2c3db79a246dba8e9e..2894343118343b5ebb7c3e331d102c5612713f69 100644 (file)
@@ -85,7 +85,7 @@ static void Init( void )
 static void Display( void )
 {
    glClearColor(0.3, 0.3, 0.3, 1);
-   glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
+   glClear( GL_COLOR_BUFFER_BIT);
 
    glEnable(GL_VERTEX_PROGRAM_ARB);
    glDrawElements( GL_TRIANGLES, 3, GL_UNSIGNED_INT, NULL );
@@ -126,7 +126,7 @@ int main( int argc, char *argv[] )
    glutInit( &argc, argv );
    glutInitWindowPosition( 0, 0 );
    glutInitWindowSize( 250, 250 );
-   glutInitDisplayMode( GLUT_RGB | GLUT_SINGLE | GLUT_DEPTH );
+   glutInitDisplayMode( GLUT_RGB | GLUT_SINGLE);
    glutCreateWindow(argv[0]);
    glutReshapeFunc( Reshape );
    glutKeyboardFunc( Key );