From: Chad Versace Date: Thu, 13 Jan 2011 00:09:37 +0000 (-0800) Subject: i915: Disable extension OES_standard_derivatives X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b9dc40b0d984ca2da915224517d5ba9d633f32a;p=mesa.git i915: Disable extension OES_standard_derivatives OES_standard_derivatives must be manually disabled for i915 because Mesa enables it by default. --- diff --git a/src/mesa/drivers/dri/intel/intel_extensions_es2.c b/src/mesa/drivers/dri/intel/intel_extensions_es2.c index 38b92d5b55b..5ef6b0561de 100644 --- a/src/mesa/drivers/dri/intel/intel_extensions_es2.c +++ b/src/mesa/drivers/dri/intel/intel_extensions_es2.c @@ -80,6 +80,17 @@ static const char *es2_extensions[] = { NULL, }; +/** + * \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]); }