summaryrefslogtreecommitdiffstats
path: root/progs/trivial
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-11-23 14:49:54 +0000
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2007-12-09 14:05:12 +0000
commit56bc8d9199e43ed694335f69910c1a4a4f85e4e1 (patch)
tree61cd16ce1cbb2591766398144938135e3804d967 /progs/trivial
parentbbecce52f8f9db729810ed70ba1c4112d45cc583 (diff)
downloadexternal_mesa3d-56bc8d9199e43ed694335f69910c1a4a4f85e4e1.zip
external_mesa3d-56bc8d9199e43ed694335f69910c1a4a4f85e4e1.tar.gz
external_mesa3d-56bc8d9199e43ed694335f69910c1a4a4f85e4e1.tar.bz2
gallium: remove unneeded depth buffer
Diffstat (limited to 'progs/trivial')
-rw-r--r--progs/trivial/vbo-drawarrays.c4
-rw-r--r--progs/trivial/vbo-drawelements.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/progs/trivial/vbo-drawarrays.c b/progs/trivial/vbo-drawarrays.c
index fb59009..3eec9c4 100644
--- a/progs/trivial/vbo-drawarrays.c
+++ b/progs/trivial/vbo-drawarrays.c
@@ -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 );
diff --git a/progs/trivial/vbo-drawelements.c b/progs/trivial/vbo-drawelements.c
index dddb456..2894343 100644
--- a/progs/trivial/vbo-drawelements.c
+++ b/progs/trivial/vbo-drawelements.c
@@ -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 );