Skip to content

Commit

Permalink
glsl: set the flags for ARB_geometry_shader4 when the EXT version is …
Browse files Browse the repository at this point in the history
…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
Plombo committed Aug 9, 2012
1 parent a6ff860 commit aa9706b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/glsl/glsl_parser_extras.cpp
Expand Up @@ -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";

Expand Down

0 comments on commit aa9706b

Please sign in to comment.