[Mesa-stable] [PATCH 6.5/15] mesa: Allow GL_TEXTURE_CUBE_MAP target with compressed internal formats
Anuj Phogat
anuj.phogat at gmail.com
Wed Jun 11 12:02:11 PDT 2014
GL_TEXTURE_CUBE_MAP is an allowed texture target in glTexStorage2D()
and is allowed to be used (like GL_TEXTURE_2D) with compressed internal
formats.
Cc: <mesa-stable at lists.freedesktop.org>
Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
---
src/mesa/main/teximage.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index a09d994..8f50b51 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -1790,6 +1790,7 @@ _mesa_target_can_be_compressed(const struct gl_context *ctx, GLenum target,
case GL_PROXY_TEXTURE_2D:
return GL_TRUE; /* true for any compressed format so far */
case GL_PROXY_TEXTURE_CUBE_MAP:
+ case GL_TEXTURE_CUBE_MAP:
case GL_TEXTURE_CUBE_MAP_POSITIVE_X:
case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:
--
1.8.3.1
More information about the mesa-stable
mailing list