summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2016-08-17 10:20:34 +0100
committerIan Romanick <ian.d.romanick@intel.com>2016-08-26 15:03:15 -0700
commitdc4f53b68308bbd79932470cf4613037f7e95fb7 (patch)
treeab86f908b5d9e32cd416c951a35a3d0ea811b984 /src/mesa/main/context.h
parent87fa462ffd6754144f89163a2692eff005beef9c (diff)
downloadexternal_mesa3d-dc4f53b68308bbd79932470cf4613037f7e95fb7.zip
external_mesa3d-dc4f53b68308bbd79932470cf4613037f7e95fb7.tar.gz
external_mesa3d-dc4f53b68308bbd79932470cf4613037f7e95fb7.tar.bz2
mesa: Add support for OES_texture_cube_map_array
This has a separate enable flag because this extension also requires OES_geometry_shader. It is possible that some drivers may support OpenGL ES 3.1 and ARB_texture_cube_map but not support OES_geometry_shader. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/main/context.h')
-rw-r--r--src/mesa/main/context.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h
index 9100ae7..4cd149d 100644
--- a/src/mesa/main/context.h
+++ b/src/mesa/main/context.h
@@ -354,7 +354,8 @@ _mesa_has_tessellation(const struct gl_context *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;
+ return _mesa_has_ARB_texture_cube_map_array(ctx) ||
+ _mesa_has_OES_texture_cube_map_array(ctx);
}
#ifdef __cplusplus