nvprogram: Silence "warning: unused parameter ‘ctx’"
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 26 Aug 2011 00:42:16 +0000 (17:42 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 9 Sep 2011 19:01:52 +0000 (12:01 -0700)
src/mesa/main/nvprogram.c
src/mesa/main/nvprogram.h
src/mesa/program/nvvertparse.c

index 7ff7645b7b71100d8ade6a57b283dfa99dbcd65c..a0e89b10f5e42fb2f4020c4c32e7c3a9f5ec5c38 100644 (file)
@@ -560,7 +560,7 @@ _mesa_emit_nv_temp_initialization(struct gl_context *ctx,
 }
 
 void
-_mesa_setup_nv_temporary_count(struct gl_context *ctx, struct gl_program *program)
+_mesa_setup_nv_temporary_count(struct gl_program *program)
 {
    GLuint i;
 
index 3a55783773be880003d2fb5feff381b11416d1cd..fc579a9fe76ea06c6b274bacfc382708012d6e18 100644 (file)
@@ -110,7 +110,7 @@ _mesa_GetProgramNamedParameterdvNV(GLuint id, GLsizei len, const GLubyte *name,
                                    GLdouble *params);
 
 extern void
-_mesa_setup_nv_temporary_count(struct gl_context *ctx, struct gl_program *program);
+_mesa_setup_nv_temporary_count(struct gl_program *program);
 
 extern void
 _mesa_emit_nv_temp_initialization(struct gl_context *ctx,
index bdd44a451333b390488d00ad99bc55a5c30afa63..91fe2c48b7f78d32d7c4d19128233cdcaded7e6d 100644 (file)
@@ -1427,7 +1427,7 @@ _mesa_parse_nv_vertex_program(struct gl_context *ctx, GLenum dstTarget,
       }
       program->Base.NumParameters = program->Base.Parameters->NumParameters;
 
-      _mesa_setup_nv_temporary_count(ctx, &program->Base);
+      _mesa_setup_nv_temporary_count(&program->Base);
       _mesa_emit_nv_temp_initialization(ctx, &program->Base);
    }
    else {