summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2014-03-11 15:04:00 +0100
committerMarek Olšák <[email protected]>2014-03-21 00:50:53 +0100
commit185ad78ffddb06d7f1d666ae508cf2fb79712e59 (patch)
tree88eff23175c6dbc89c66afac1beeb1fcec63b7f8 /src/mesa/main
parent55cf320ed87f902d817dfea363e6612be0c3b675 (diff)
mesa: allow generating mipmaps for cube arrays
Cc: [email protected] Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/genmipmap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/genmipmap.c b/src/mesa/main/genmipmap.c
index dcd482da201..9d111cab20a 100644
--- a/src/mesa/main/genmipmap.c
+++ b/src/mesa/main/genmipmap.c
@@ -74,6 +74,10 @@ _mesa_GenerateMipmap(GLenum target)
error = (_mesa_is_gles(ctx) && ctx->Version < 30)
|| !ctx->Extensions.EXT_texture_array;
break;
+ case GL_TEXTURE_CUBE_MAP_ARRAY:
+ error = _mesa_is_gles(ctx) ||
+ !ctx->Extensions.ARB_texture_cube_map_array;
+ break;
default:
error = GL_TRUE;
}