summaryrefslogtreecommitdiff
path: root/src/glsl/glsl_parser_extras.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/glsl_parser_extras.cpp')
-rw-r--r--src/glsl/glsl_parser_extras.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp
index 14cb9fc78b..305a248f97 100644
--- a/src/glsl/glsl_parser_extras.cpp
+++ b/src/glsl/glsl_parser_extras.cpp
@@ -647,6 +647,7 @@ static const _mesa_glsl_extension _mesa_glsl_supported_extensions[] = {
EXT(EXT_separate_shader_objects, false, true, dummy_true),
EXT(EXT_shader_integer_mix, true, true, EXT_shader_integer_mix),
EXT(EXT_texture_array, true, false, EXT_texture_array),
+ EXT(EXT_tessellation_shader, false, true, ARB_tessellation_shader),
};
#undef EXT
@@ -892,7 +893,7 @@ _mesa_ast_process_interface_block(YYLTYPE *locp,
"required for defining uniform blocks");
}
} else {
- if (state->es_shader || state->language_version < 150) {
+ if (!state->is_version(150, 310)) {
_mesa_glsl_error(locp, state,
"#version 150 required for using "
"interface blocks");