Module: Mesa Branch: 7.11 Commit: c4da12e74fd89c4657931d891c96741647bb45e9 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c4da12e74fd89c4657931d891c96741647bb45e9
Author: Brian Paul <[email protected]> Date: Thu Jul 7 16:47:59 2011 -0600 glsl: use casts to silence warning (cherry picked from commit 7eb7d67d50fccb64248d1fc6f490895048d7d32e) --- src/glsl/linker.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 265da84..34b6483 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -1248,7 +1248,7 @@ assign_attribute_or_color_locations(gl_shader_program *prog, */ const int generic_base = (target_index == MESA_SHADER_VERTEX) - ? VERT_ATTRIB_GENERIC0 : FRAG_RESULT_DATA0; + ? (int) VERT_ATTRIB_GENERIC0 : (int) FRAG_RESULT_DATA0; const enum ir_variable_mode direction = (target_index == MESA_SHADER_VERTEX) ? ir_var_in : ir_var_out; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
