From e0e7e29554b7a4a723315eef3df5fb9bad28a70a Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sat, 3 Nov 2012 20:41:08 +1000 Subject: mesa: add fbo/texture support for ARB_texture_cube_map_array (v2) This adds the mesa core + texture + fbo support for the texture cube map array extension. v2: add comment to _mesa_num_tex_faces related to cube map arrays (Brian) drop wrong comment cut-n-paste (Brian) fix / 6 maximum check issue (Kenneth) coalsece some array case statements (Kenneth) Reviewed-by: Kenneth Graunke Reviewed-by: Brian Paul Signed-off-by: Dave Airlie --- src/mesa/main/texparam.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mesa/main/texparam.c') diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index f73e2b5f022..8ce0546180c 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -170,6 +170,11 @@ get_texobj(struct gl_context *ctx, GLenum target, GLboolean get) return texUnit->CurrentTex[TEXTURE_EXTERNAL_INDEX]; } break; + case GL_TEXTURE_CUBE_MAP_ARRAY: + if (ctx->Extensions.ARB_texture_cube_map_array) { + return texUnit->CurrentTex[TEXTURE_CUBE_ARRAY_INDEX]; + } + break; default: ; } -- cgit v1.2.3