Skip to content
Browse files

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

…used

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...
1 parent a6ff860 commit aa9706b51b20702020ed1443ae38a8d0f839a16f @Plombo committed Aug 9, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/glsl/glsl_parser_extras.cpp
View
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";

0 comments on commit aa9706b

Please sign in to comment.
Something went wrong with that request. Please try again.