diff options
author | Brian Paul <brianp@vmware.com> | 2012-09-15 08:45:19 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2012-09-15 08:45:19 -0600 |
commit | 159aaa17ef72e0421957706cea391d4a9ea79f79 (patch) | |
tree | 8c610ed3f5634306636311dea82206847f9df684 /src/glsl | |
parent | ce1b8cecaa2ac6b2e64aaaf15a789e4112a9c032 (diff) |
glsl/identity: remove more unused stuff
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/identity.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/glsl/identity.c b/src/glsl/identity.c index 1c93b469..51c0081c 100644 --- a/src/glsl/identity.c +++ b/src/glsl/identity.c @@ -18,13 +18,12 @@ static GLuint fragShader; static GLuint vertShader; static GLuint program; static GLint win = 0; -static int w,h; static void Redisplay(void) { - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + glClear(GL_COLOR_BUFFER_BIT); glBegin(GL_TRIANGLES); glVertex3f(-0.9, -0.9, 0.0); @@ -44,8 +43,6 @@ Reshape(int width, int height) glLoadIdentity(); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); - w = width; - h = height; } @@ -96,7 +93,6 @@ Init(void) assert(glGetError() == 0); glClearColor(0.3f, 0.3f, 0.3f, 1.0f); - glEnable(GL_DEPTH_TEST); printf("GL_RENDERER = %s\n",(const char *) glGetString(GL_RENDERER)); @@ -113,7 +109,7 @@ main(int argc, char *argv[]) { glutInit(&argc, argv); glutInitWindowSize(200, 200); - glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH); + glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE); win = glutCreateWindow(argv[0]); glewInit(); glutReshapeFunc(Reshape); |