projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gallium/u_blit: remove useless memset calls
[mesa.git]
/
src
/
mesa
/
program
/
nvvertparse.c
diff --git
a/src/mesa/program/nvvertparse.c
b/src/mesa/program/nvvertparse.c
index 1ac83d0e59d491a05d73a02dc2132be66833ca09..7b46bef91b046a6676207dec6bce6374bc4922cb 100644
(file)
--- a/
src/mesa/program/nvvertparse.c
+++ b/
src/mesa/program/nvvertparse.c
@@
-54,7
+54,7
@@
* program attributes.
*/
struct parse_state {
* program attributes.
*/
struct parse_state {
-
GL
context *ctx;
+
struct gl_
context *ctx;
const GLubyte *start;
const GLubyte *pos;
const GLubyte *curLine;
const GLubyte *start;
const GLubyte *pos;
const GLubyte *curLine;
@@
-1282,7
+1282,7
@@
Parse_Program(struct parse_state *parseState,
* indicates the position of the error in 'str'.
*/
void
* indicates the position of the error in 'str'.
*/
void
-_mesa_parse_nv_vertex_program(
GL
context *ctx, GLenum dstTarget,
+_mesa_parse_nv_vertex_program(
struct gl_
context *ctx, GLenum dstTarget,
const GLubyte *str, GLsizei len,
struct gl_vertex_program *program)
{
const GLubyte *str, GLsizei len,
struct gl_vertex_program *program)
{
@@
-1424,10
+1424,11
@@
_mesa_parse_nv_vertex_program(GLcontext *ctx, GLenum dstTarget,
index = _mesa_add_state_reference(program->Base.Parameters,
state_tokens);
assert(index == i);
index = _mesa_add_state_reference(program->Base.Parameters,
state_tokens);
assert(index == i);
+ (void)index;
}
program->Base.NumParameters = program->Base.Parameters->NumParameters;
}
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 {
_mesa_emit_nv_temp_initialization(ctx, &program->Base);
}
else {