From: Jordan Justen Date: Sun, 8 Jun 2014 20:10:59 +0000 (-0700) Subject: main/extensions: Don't advertise unknown extensions overrides with (-) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f2280eeba5599ae3b0d3a8ef188be0590bf78e69;p=mesa.git main/extensions: Don't advertise unknown extensions overrides with (-) 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 Reviewed-by: Anuj Phogat --- diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index e63c0c49d1b..822f8cd64e8 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -555,7 +555,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, " "); }