diff options
author | Timothy Arceri <[email protected]> | 2017-06-26 09:25:07 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-06-27 08:03:29 +1000 |
commit | 62abf6862f24f1633166e47b097f7bd255067c45 (patch) | |
tree | 6f8c4168a1108fcead6177d190956ce9636710d6 /src/mesa | |
parent | ccf963ed2984a77a25915adbf2d87ddfacc27cb5 (diff) |
mesa: fix unused variable warning in release builds
Reviewed-by: Nicolai Hähnle <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/uniforms.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index 91c3bf66f8d..71acb288864 100644 --- a/src/mesa/main/uniforms.c +++ b/src/mesa/main/uniforms.c @@ -104,7 +104,8 @@ _mesa_update_shader_textures_used(struct gl_shader_program *shProg, GLbitfield mask = prog->SamplersUsed; gl_shader_stage prog_stage = _mesa_program_enum_to_shader_stage(prog->Target); - struct gl_linked_shader *shader = shProg->_LinkedShaders[prog_stage]; + MAYBE_UNUSED struct gl_linked_shader *shader = + shProg->_LinkedShaders[prog_stage]; GLuint s; assert(shader); |