diff options
author | Zack Rusin <[email protected]> | 2008-06-10 16:59:44 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2008-06-12 14:15:37 -0400 |
commit | 68ef8e89a5f25cd9f80e2b9088604631a28edc3c (patch) | |
tree | 4f30579541c645b80dd2ed752528ee247c7971d3 /src/mesa/state_tracker | |
parent | 5ecb2f2d0fca0c5ea847d1968459aa0dd8138f14 (diff) |
glsl: implement variable array indexes
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_mesa_to_tgsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c index 12979de5233..a8b6faad1c2 100644 --- a/src/mesa/state_tracker/st_mesa_to_tgsi.c +++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c @@ -68,8 +68,8 @@ map_register_file( case PROGRAM_STATE_VAR: case PROGRAM_NAMED_PARAM: case PROGRAM_UNIFORM: - if (immediateMapping[index] != ~0) - return TGSI_FILE_IMMEDIATE; + if (immediateMapping && immediateMapping[index] != ~0) + return TGSI_FILE_IMMEDIATE; else return TGSI_FILE_CONSTANT; case PROGRAM_CONSTANT: |