summaryrefslogtreecommitdiffstats
path: root/progs/trivial/vbo-drawarrays.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2007-11-25 15:06:54 +0000
committerJosé Fonseca <[email protected]>2007-12-09 14:06:00 +0000
commitb1399a5dd20fad801ee10383143439f8cf4615db (patch)
tree7a8bc67ae96af42f5831e51ed5c29d7402fc2482 /progs/trivial/vbo-drawarrays.c
parentb47836225185c8d2e2ccf3e191230304709d0a57 (diff)
gallium: more trivial tests
Diffstat (limited to 'progs/trivial/vbo-drawarrays.c')
-rw-r--r--progs/trivial/vbo-drawarrays.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/trivial/vbo-drawarrays.c b/progs/trivial/vbo-drawarrays.c
index 3eec9c47237..fb590098a32 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);
+ glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_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);
+ glutInitDisplayMode( GLUT_RGB | GLUT_SINGLE | GLUT_DEPTH );
glutCreateWindow(argv[0]);
glutReshapeFunc( Reshape );
glutKeyboardFunc( Key );