From 7b9dc40b0d984ca2da915224517d5ba9d633f32a Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Wed, 12 Jan 2011 16:09:37 -0800 Subject: [PATCH] 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 file changed, 13 insertions(+) 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]); } -- 2.30.2