[Mesa-dev] [PATCH 2/9] mesa: allow generating mipmaps for cube arrays
Marek Olšák
maraeo at gmail.com
Sat Mar 15 10:17:52 PDT 2014
From: Marek Olšák <marek.olsak at amd.com>
Cc: mesa-stable at lists.freedesktop.org
---
src/mesa/main/genmipmap.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/mesa/main/genmipmap.c b/src/mesa/main/genmipmap.c
index dcd482d..9d111ca 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;
}
--
1.8.3.2
More information about the mesa-dev
mailing list