summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-08-05 17:29:15 -0700
committerIan Romanick <[email protected]>2010-08-05 17:29:15 -0700
commit0a09d679ca97dcb634a939df2110a90c9504e2ec (patch)
treee9533edc3c924c806c5c764463a8ab2fa4db41c8 /src/glsl/glsl_parser_extras.cpp
parent1e0f0459e0ca8b9f0c67f8178e5189b8cfd6078c (diff)
glsl_type: Don't have two versions of a type with the same name
Previously some sampler types were duplicated in GLSL 1.30 and GL_EXT_texture_array. This resulted in not being able to find the built-in sampler functions when the extension was used. When the built-in functions were compiled, they bound to the 1.30 version. This caused a type mismatch when trying to find the function. It also resulted in a confusing error message: 0:0(0): error: no matching function for call to `texture2DArray(sampler2DArray, vec3)' 0:0(0): error: candidates are: vec4 texture2DArray(sampler2DArray, vec3) 0:0(0): error: vec4 texture2DArray(sampler2DArray, vec3, float)
Diffstat (limited to 'src/glsl/glsl_parser_extras.cpp')
0 files changed, 0 insertions, 0 deletions