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>
This commit is contained in:
Jordan Justen
2014-06-08 13:10:59 -07:00
parent 41060a6095
commit f2280eeba5
+1 -1
View File
@@ -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, " ");
}