summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/context.h')
-rw-r--r--src/mesa/main/context.h5
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
}