commit | 7ffe40532f6b22d9b80caeac0fc3b9495619186a | [log] [tgz] |
---|---|---|
author | Ian Romanick <ian.d.romanick@intel.com> | Mon Aug 02 11:46:22 2010 -0700 |
committer | Ian Romanick <ian.d.romanick@intel.com> | Mon Aug 02 13:53:32 2010 -0700 |
tree | 3e6cbd1de69e3d14af258f320ac7fe1a9fe1b788 | |
parent | cf41c8a0d8dac52bafb7c3e85171566c492786ab [diff] [blame] |
glsl2: Clean-up two 'unused variable' warnings
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp index d557dcc..bc7292d 100644 --- a/src/glsl/main.cpp +++ b/src/glsl/main.cpp
@@ -45,6 +45,9 @@ _mesa_new_shader(GLcontext *ctx, GLuint name, GLenum type) { struct gl_shader *shader; + + (void) ctx; + assert(type == GL_FRAGMENT_SHADER || type == GL_VERTEX_SHADER); shader = talloc_zero(NULL, struct gl_shader); if (shader) {