diff options
author | Timothy Arceri <[email protected]> | 2015-06-06 09:10:55 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2015-10-15 21:42:24 +1100 |
commit | 8da9e154b7a2463369b32a10742af3a5695eb2ab (patch) | |
tree | e30950943935cd93f84b89b6136f022842b9f1c7 /src/glsl/ast_to_hir.cpp | |
parent | f22b7933e2e9c31b3730f5b1d9c060d2e1377d20 (diff) |
glsl: Allow arrays of arrays in GLSL ES 3.10 and GLSL 4.30
V3: use a check_*_allowed style function for requirements checking
rather than has_* which doesn't encapsulate the error message
V2: add missing 's' to the extension name in error messages
and add decimal place in version string
Reviewed-by: Marta Lofstedt <[email protected]>
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
-rw-r--r-- | src/glsl/ast_to_hir.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index db617cb41ac..cd40fe343e3 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -2141,12 +2141,7 @@ process_array_type(YYLTYPE *loc, const glsl_type *base, * * "Only one-dimensional arrays may be declared." */ - if (!state->ARB_arrays_of_arrays_enable) { - _mesa_glsl_error(loc, state, - "invalid array of `%s'" - "GL_ARB_arrays_of_arrays " - "required for defining arrays of arrays", - base->name); + if (!state->check_arrays_of_arrays_allowed(loc)) { return glsl_type::error_type; } } |