glsl: dont crash when attempting to assign a value to a builtin define
authorTimothy Arceri <timothy.arceri@collabora.com>
Mon, 30 May 2016 02:16:39 +0000 (12:16 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Mon, 30 May 2016 02:47:58 +0000 (12:47 +1000)
commit87fb5aa3e741e9b93bf09509ff14d4cbc683e482
tree1e6482f9044755e4fb606e1d875cb1d9084580d5
parentd98d6e6269167230d20efdc45d608435a52f25fb
glsl: dont crash when attempting to assign a value to a builtin define

For example GL_ARB_enhanced_layouts = 3;

Fixes:
GL44-CTS.enhanced_layouts.glsl_contant_immutablity

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/compiler/glsl/ast_to_hir.cpp