Analogous to the glGetString() case - report all the
extensions enabled via MESA_EXTENSION_OVERRIDE
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
if (_mesa_extension_supported(ctx, k))
ctx->Extensions.Count++;
}
+
+ for (k = 0; k < MAX_UNRECOGNIZED_EXTENSIONS; ++k) {
+ if (ctx->Extensions.unrecognized_extensions[k])
+ ctx->Extensions.Count++;
+ }
return ctx->Extensions.Count;
}
}
}
+ for (i = 0; i < MAX_UNRECOGNIZED_EXTENSIONS; ++i) {
+ if (ctx->Extensions.unrecognized_extensions[i]) {
+ if (n == index)
+ return (const GLubyte*) ctx->Extensions.unrecognized_extensions[i];
+ else
+ ++n;
+ }
+ }
return NULL;
}