Module: Mesa Branch: master Commit: 7b9dc40b0d984ca2da915224517d5ba9d633f32a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7b9dc40b0d984ca2da915224517d5ba9d633f32a
Author: Chad Versace <chad.vers...@intel.com> Date: Wed Jan 12 16:09:37 2011 -0800 i915: Disable extension OES_standard_derivatives OES_standard_derivatives must be manually disabled for i915 because Mesa enables it by default. --- src/mesa/drivers/dri/intel/intel_extensions_es2.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_extensions_es2.c b/src/mesa/drivers/dri/intel/intel_extensions_es2.c index 38b92d5..5ef6b05 100644 --- a/src/mesa/drivers/dri/intel/intel_extensions_es2.c +++ b/src/mesa/drivers/dri/intel/intel_extensions_es2.c @@ -81,6 +81,17 @@ static const char *es2_extensions[] = { }; /** + * \brief Extensions to disable. + * + * These extensions must be manually disabled because they may have been + * enabled by default. + */ +static const char* es2_extensions_disabled[] = { + "GL_OES_standard_derivatives", + NULL, +}; + +/** * Initializes potential list of extensions if ctx == NULL, or actually enables * extensions for a context. */ @@ -94,4 +105,6 @@ intelInitExtensionsES2(struct gl_context *ctx) for (i = 0; es2_extensions[i]; i++) _mesa_enable_extension(ctx, es2_extensions[i]); + for (i = 0; es2_extensions_disabled[i]; i++) + _mesa_disable_extension(ctx, es2_extensions_disabled[i]); } _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit