summaryrefslogtreecommitdiff
path: root/src/mesa/shader/prog_parameter.c
diff options
context:
space:
mode:
authorMichal Krol <michal@tungstengraphics.com>2008-07-15 11:44:47 +0200
committerMichal Krol <michal@tungstengraphics.com>2008-07-15 11:49:02 +0200
commitf9c574d7192d2193ff3e12629a8db1a74b6dbf55 (patch)
treecb128f689d953fc8b8fa21cd990ef478dfe757a6 /src/mesa/shader/prog_parameter.c
parent6c534b830c6f5427c391c5225c34561141c201ba (diff)
mesa: Silence compiler warnings on Windows.
Diffstat (limited to 'src/mesa/shader/prog_parameter.c')
-rw-r--r--src/mesa/shader/prog_parameter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/prog_parameter.c b/src/mesa/shader/prog_parameter.c
index afdd7e5489..b302442227 100644
--- a/src/mesa/shader/prog_parameter.c
+++ b/src/mesa/shader/prog_parameter.c
@@ -319,6 +319,7 @@ _mesa_add_sampler(struct gl_program_parameter_list *paramList,
return (GLint) paramList->ParameterValues[i][0];
}
else {
+ GLuint i;
const GLint size = 1; /* a sampler is basically a texture unit number */
GLfloat value;
GLint numSamplers = 0;