glsl: silence warning in linker.cpp
authorBrian Paul <brianp@vmware.com>
Wed, 20 Jul 2011 03:10:25 +0000 (21:10 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 20 Jul 2011 03:10:25 +0000 (21:10 -0600)
src/glsl/linker.cpp

index 34b64837a46ef12a6d0c38e48bf917f3f967c44f..5ec08446d16308bbf489d7471a94b53a7f34a6e1 100644 (file)
@@ -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) {