From: Niels Ole Salscheider Date: Sun, 12 Aug 2012 16:35:10 +0000 (+0200) Subject: st/mesa: index can be negative in the PROGRAM_CONSTANT case X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8cc1860d4a55c93ce12a649c281012b37212ffbd;p=mesa.git st/mesa: index can be negative in the PROGRAM_CONSTANT case NOTE: This is a candidate for the 8.0 branch. Reviewed-by: Brian Paul --- diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 39717b6fd25..9f5831295f0 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -4028,7 +4028,7 @@ dst_register(struct st_translate *t, static struct ureg_src src_register(struct st_translate *t, gl_register_file file, - GLuint index) + GLint index) { switch(file) { case PROGRAM_UNDEFINED: