glsl: fix crash when a const is passed to texelFetchOffset
authorDave Airlie <airlied@redhat.com>
Thu, 25 Aug 2011 20:05:13 +0000 (21:05 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 25 Aug 2011 20:07:42 +0000 (21:07 +0100)
commit8ce716257a3529d0aa750d7a7b344984c5ac4274
treef6c2b9037f21c0bb81394f736d7bd533c5bf9b82
parentc25b4943322ddd31d70d87464fe32be26ac6c858
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>
src/glsl/ast_function.cpp