projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65f67ba
)
use a depth buffer temporarily
author
Keith Whitwell
<keith@tungstengraphics.com>
Wed, 19 Dec 2007 13:13:42 +0000
(13:13 +0000)
committer
Keith Whitwell
<keith@tungstengraphics.com>
Wed, 19 Dec 2007 13:13:53 +0000
(13:13 +0000)
progs/trivial/vp-tri.c
patch
|
blob
|
history
diff --git
a/progs/trivial/vp-tri.c
b/progs/trivial/vp-tri.c
index
f8e1865
..
b3ac52b
100644
(file)
--- 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 );