mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
use a depth buffer temporarily
This commit is contained in:
parent
65f67baa42
commit
2c8e50c0cb
1 changed files with 2 additions and 2 deletions
|
|
@ -43,7 +43,7 @@ static void Init( void )
|
||||||
static void Display( void )
|
static void Display( void )
|
||||||
{
|
{
|
||||||
glClearColor(0.3, 0.3, 0.3, 1);
|
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);
|
glEnable(GL_VERTEX_PROGRAM_NV);
|
||||||
|
|
||||||
|
|
@ -93,7 +93,7 @@ int main( int argc, char *argv[] )
|
||||||
glutInit( &argc, argv );
|
glutInit( &argc, argv );
|
||||||
glutInitWindowPosition( 0, 0 );
|
glutInitWindowPosition( 0, 0 );
|
||||||
glutInitWindowSize( 250, 250 );
|
glutInitWindowSize( 250, 250 );
|
||||||
glutInitDisplayMode( GLUT_RGB | GLUT_SINGLE );
|
glutInitDisplayMode( GLUT_DEPTH | GLUT_RGB | GLUT_SINGLE );
|
||||||
glutCreateWindow(argv[0]);
|
glutCreateWindow(argv[0]);
|
||||||
glutReshapeFunc( Reshape );
|
glutReshapeFunc( Reshape );
|
||||||
glutKeyboardFunc( Key );
|
glutKeyboardFunc( Key );
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue