From a16ffb743ced9fde80b2485dfc2d86ae74e86f25 Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Thu, 15 Oct 2015 12:34:43 -0700 Subject: mesa: In helpers, only check driver capability for meta Make API context and version checks done by the helper functions pass unconditionally while meta is in progress. This transparently makes extension checks solely dependent on struct gl_extensions while in meta. v2: Use an 8-bit data type instead of a GLuint Signed-off-by: Nanley Chery Reviewed-by: Chad Versace --- src/mesa/main/extensions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/main/extensions.h') diff --git a/src/mesa/main/extensions.h b/src/mesa/main/extensions.h index 4ea2af13efc..e4671be2cf6 100644 --- a/src/mesa/main/extensions.h +++ b/src/mesa/main/extensions.h @@ -91,7 +91,7 @@ enum { static inline bool \ _mesa_has_##name_str(const struct gl_context *ctx) \ { \ - return ctx->Extensions.driver_cap && (ctx->Version >= \ + return ctx->Extensions.driver_cap && (ctx->Extensions.Version >= \ _mesa_extension_table[MESA_EXTENSION_##name_str].version[ctx->API]); \ } #include "extensions_table.h" -- cgit v1.2.3