glsl: fix crash when a const is passed to texelFetchOffset

while debugging texelFetchOffset we kept hitting the assert.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Dave Airlie 2011-08-25 21:05:13 +01:00
parent c25b494332
commit 8ce716257a
1 changed files with 1 additions and 0 deletions

View File

@ -195,6 +195,7 @@ match_function_by_name(exec_list *instructions, const char *name,
if (formal->type->is_numeric() || formal->type->is_boolean()) {
switch (formal->mode) {
case ir_var_const_in:
case ir_var_in: {
ir_rvalue *converted
= convert_component(actual, formal->type);