summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-12-19 13:13:42 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2007-12-19 13:13:53 +0000
commit2c8e50c0cbbea64fd26d9c61c19c697e1cbfd9f5 (patch)
tree133eb29cd5c2eb4e334bda6c635ed06091988e1e /progs
parent65f67baa425af71fc52639d22c1683da3b386a1b (diff)
use a depth buffer temporarily
Diffstat (limited to 'progs')
-rw-r--r--progs/trivial/vp-tri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/trivial/vp-tri.c b/progs/trivial/vp-tri.c
index f8e18654c6..b3ac52b509 100644
--- a/progs/trivial/vp-tri.c
+++ b/progs/trivial/vp-tri.c
@@ -43,7 +43,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_NV);
@@ -93,7 +93,7 @@ int main( int argc, char *argv[] )
glutInit( &argc, argv );
glutInitWindowPosition( 0, 0 );
glutInitWindowSize( 250, 250 );
- glutInitDisplayMode( GLUT_RGB | GLUT_SINGLE );
+ glutInitDisplayMode( GLUT_DEPTH | GLUT_RGB | GLUT_SINGLE );
glutCreateWindow(argv[0]);
glutReshapeFunc( Reshape );
glutKeyboardFunc( Key );