summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-07-19 21:10:25 -0600
committerBrian Paul <[email protected]>2011-07-19 21:10:25 -0600
commit4470ff2ebf56b22421038bc7272ef22c085b839d (patch)
treec21927357bef5a1b4649b6f02a0564ae4802830f /src/glsl
parent496bf3822a724127b2632596dc45648fdeda0afb (diff)
glsl: silence warning in linker.cpp
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/linker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index 34b64837a46..5ec08446d16 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -1343,7 +1343,7 @@ assign_attribute_or_color_locations(gl_shader_program *prog,
foreach_list(node, sh->ir) {
ir_variable *const var = ((ir_instruction *) node)->as_variable();
- if ((var == NULL) || (var->mode != direction))
+ if ((var == NULL) || (var->mode != (unsigned) direction))
continue;
if (var->explicit_location) {