diff options
author | Ian Romanick <[email protected]> | 2016-08-18 11:11:04 +0100 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-08-26 15:03:15 -0700 |
commit | 87fa462ffd6754144f89163a2692eff005beef9c (patch) | |
tree | 8563fe5124dcd47b2da3c8308b77c791e6c5592f /src/mesa/main/context.h | |
parent | 66b988d09af1a505b428cf2a32c7ee11fb832982 (diff) |
mesa: Add and use _mesa_has_texture_cube_map_array helper
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/context.h')
-rw-r--r-- | src/mesa/main/context.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index 9a609dd61ff..9100ae75cdc 100644 --- a/src/mesa/main/context.h +++ b/src/mesa/main/context.h @@ -351,6 +351,11 @@ _mesa_has_tessellation(const struct gl_context *ctx) _mesa_has_ARB_tessellation_shader(ctx); } +static inline bool +_mesa_has_texture_cube_map_array(const struct gl_context *ctx) +{ + return _mesa_is_desktop_gl(ctx) && ctx->Extensions.ARB_texture_cube_map_array; +} #ifdef __cplusplus } |