summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-11-11 22:41:26 -0800
committerVinson Lee <vlee@vmware.com>2010-11-11 22:41:26 -0800
commit6eb19ec8d3b03e44c0fbfbb792650c03ca1b8dc9 (patch)
tree2b6d21a391084d19293d8e5e243871fbf589e57b /tests
parent78591120c508fcb274d84c982d90bc2d6747fe03 (diff)
glsl-fs-texturelod-01: Move declaration before code.
Fixes MSVC build.
Diffstat (limited to 'tests')
-rw-r--r--tests/shaders/glsl-fs-texturelod-01.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/shaders/glsl-fs-texturelod-01.c b/tests/shaders/glsl-fs-texturelod-01.c
index 3f35c6d43..b75716e05 100644
--- a/tests/shaders/glsl-fs-texturelod-01.c
+++ b/tests/shaders/glsl-fs-texturelod-01.c
@@ -123,7 +123,7 @@ piglit_display()
void
piglit_init(int argc, char **argv)
{
- GLint vs, fs, prog;
+ GLint vs, fs, prog, sampler_uniform;
if (!GLEW_VERSION_2_0) {
printf("Requires OpenGL 2.0\n");
@@ -147,7 +147,7 @@ piglit_init(int argc, char **argv)
glUseProgram(prog);
// Setup uniforms.
- GLint sampler_uniform = glGetUniformLocation(prog, "sampler");
+ sampler_uniform = glGetUniformLocation(prog, "sampler");
if (sampler_uniform == -1) {
printf("error: Unable to get location of uniform 'sampler'\n");
piglit_report_result(PIGLIT_FAILURE);