summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/extensions.h
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2015-10-15 12:34:43 -0700
committerNanley Chery <[email protected]>2015-11-12 13:10:37 -0800
commita16ffb743ced9fde80b2485dfc2d86ae74e86f25 (patch)
tree987bb5b3167cba591bf23fff20479fc00e532986 /src/mesa/main/extensions.h
parent5645770742d21b0a2ae0fe3ecce135933cd9b4fc (diff)
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 <[email protected]> Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/main/extensions.h')
-rw-r--r--src/mesa/main/extensions.h2
1 files changed, 1 insertions, 1 deletions
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"