diff options
author | Dave Airlie <[email protected]> | 2011-08-25 21:05:13 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-08-25 21:07:42 +0100 |
commit | 8ce716257a3529d0aa750d7a7b344984c5ac4274 (patch) | |
tree | f6c2b9037f21c0bb81394f736d7bd533c5bf9b82 /src/glsl/ast_function.cpp | |
parent | c25b4943322ddd31d70d87464fe32be26ac6c858 (diff) |
glsl: fix crash when a const is passed to texelFetchOffset
while debugging texelFetchOffset we kept hitting the assert.
Signed-off-by: Dave Airlie <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/ast_function.cpp')
-rw-r--r-- | src/glsl/ast_function.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp index 8b79d850581..ca45934a478 100644 --- a/src/glsl/ast_function.cpp +++ b/src/glsl/ast_function.cpp @@ -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); |