[Mesa-dev] [PATCH 1/7] main/extensions: Don't advertise unknown extensions overrides with (-)
Jordan Justen
jordan.l.justen at intel.com
Sun Jun 8 15:17:23 PDT 2014
Previously setting:
MESA_EXTENSION_OVERRIDE=-GL_MESA_ham_sandwich
Would cause Mesa to advertise support for the GL_MESA_ham_sandwich
extension, even though the override specifically asked for it to be
disabled.
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
Series is available in the early-extension-override branch of
git://people.freedesktop.org/~jljusten/mesa
src/mesa/main/extensions.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index c2ff7e3..c141576 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -553,7 +553,7 @@ get_extension_override( struct gl_context *ctx )
break;
}
recognized = set_extension(ctx, ext, enable);
- if (!recognized) {
+ if (!recognized && enable) {
strcat(extra_exts, ext);
strcat(extra_exts, " ");
}
--
2.0.0
More information about the mesa-dev
mailing list