Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

glsl: set the flags for ARB_geometry_shader4 when the EXT version is …


Since there is no difference in functionality between GL_EXT_geometry_shader4
and GL_ARB_geometry_shader4, using one flag for both will simplify code that
needs to check whether one of the extensions is enabled.
  • Loading branch information...
commit aa9706b51b20702020ed1443ae38a8d0f839a16f 1 parent a6ff860
@Plombo authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/glsl/glsl_parser_extras.cpp
4 src/glsl/glsl_parser_extras.cpp
@@ -425,6 +425,10 @@ _mesa_glsl_process_extension(const char *name, YYLTYPE *name_locp,
const _mesa_glsl_extension *extension = find_extension(name);
if (extension && extension->compatible_with_state(state)) {
extension->set_flags(state, behavior);
+ if (strcmp(name, "GL_EXT_geometry_shader4") == 0) {
+ state->ARB_geometry_shader4_enable = state->EXT_geometry_shader4_enable;
+ state->ARB_geometry_shader4_warn = state->EXT_geometry_shader4_warn;
+ }
} else {
static const char *const fmt = "extension `%s' unsupported in %s shader";
Please sign in to comment.
Something went wrong with that request. Please try again.