summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiels Ole Salscheider <niels_ole@salscheider-online.de>2012-08-12 18:35:10 +0200
committerBrian Paul <brianp@vmware.com>2012-08-16 08:56:09 -0600
commit8cc1860d4a55c93ce12a649c281012b37212ffbd (patch)
tree167d8100969e7f307f20ef99278c04e8733b9a1f
parentfd41cbc557509a36ae513eb7170edffbaa5e5715 (diff)
downloadmesa-8cc1860d4a55c93ce12a649c281012b37212ffbd.tar.gz
mesa-8cc1860d4a55c93ce12a649c281012b37212ffbd.tar.xz
mesa-8cc1860d4a55c93ce12a649c281012b37212ffbd.zip
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 <brianp@vmware.com>
-rw-r--r--src/mesa/state_tracker/st_glsl_to_tgsi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index 39717b6fd2..9f5831295f 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: