From 6c47026753f7189c8c03aaffe311fee04e107f4f Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 25 Dec 2012 20:15:37 -0800 Subject: [PATCH] glsl: Pretend to support EXT_bindable_uniform. Most of Dungeon Defenders' shaders contain #extension GL_EXT_bindable_uniform : require However, it doesn't actually appear to use any of the features provided by that extension. So to get the game running, pretend to support it, even though none of it is implemented. --- src/glsl/glsl_parser_extras.cpp | 1 + src/glsl/glsl_parser_extras.h | 2 ++ src/mesa/main/extensions.c | 2 ++ 3 files changed, 5 insertions(+) diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index b460c86..5ee19e3 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_parser_extras.cpp @@ -462,6 +462,7 @@ static const _mesa_glsl_extension _mesa_glsl_supported_extensions[] = { EXT(ARB_uniform_buffer_object, true, false, true, true, false, ARB_uniform_buffer_object), EXT(OES_standard_derivatives, false, false, true, false, true, OES_standard_derivatives), EXT(ARB_texture_cube_map_array, true, false, true, true, false, ARB_texture_cube_map_array), + EXT(EXT_bindable_uniform, true, true, true, true, false, dummy_true), }; #undef EXT diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h index 46e0784..5c40672 100644 --- a/src/glsl/glsl_parser_extras.h +++ b/src/glsl/glsl_parser_extras.h @@ -272,6 +272,8 @@ struct _mesa_glsl_parse_state { bool OES_standard_derivatives_warn; bool ARB_texture_cube_map_array_enable; bool ARB_texture_cube_map_array_warn; + bool EXT_bindable_uniform_enable; + bool EXT_bindable_uniform_warn; /*@}*/ /** Extensions supported by the OpenGL implementation. */ diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 98711b3..230275b 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -161,6 +161,8 @@ static const struct extension extension_table[] = { /* EXT extensions */ { "GL_EXT_abgr", o(dummy_true), GL, 1995 }, { "GL_EXT_bgra", o(dummy_true), GLL, 1995 }, + { "GL_EXT_bindable_uniform", o(dummy_true), GLL, 2008 }, + { "GL_EXT_blend_color", o(EXT_blend_color), GLL, 1995 }, { "GL_EXT_blend_color", o(EXT_blend_color), GLL, 1995 }, { "GL_EXT_blend_equation_separate", o(EXT_blend_equation_separate), GL, 2003 }, { "GL_EXT_blend_func_separate", o(EXT_blend_func_separate), GLL, 1999 }, -- 1.8.0.2