summaryrefslogtreecommitdiff
path: root/src/mesa/main/extensions.c
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2014-06-08 13:10:59 -0700
committerJordan Justen <jordan.l.justen@intel.com>2014-06-16 09:54:52 -0700
commitf2280eeba5599ae3b0d3a8ef188be0590bf78e69 (patch)
tree350386074fa1527bfc0b883583a026f0e465aa32 /src/mesa/main/extensions.c
parent41060a6095da5a424f9b31e5d52148a078cf1400 (diff)
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 <jordan.l.justen@intel.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Diffstat (limited to 'src/mesa/main/extensions.c')
-rw-r--r--src/mesa/main/extensions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index e63c0c49d1..822f8cd64e 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, " ");
}