Mesa (master): mesa: Allow GL_TEXTURE_CUBE_MAP target with compressed internal formats

Anuj Phogat aphogat at kemper.freedesktop.org
Tue Aug 5 01:32:11 UTC 2014


Module: Mesa
Branch: master
Commit: c7def2257aae3b73ba37609dfbc0a0f35fa99c81
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c7def2257aae3b73ba37609dfbc0a0f35fa99c81

Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Mon Jun  9 17:28:33 2014 -0700

mesa: Allow GL_TEXTURE_CUBE_MAP target with compressed internal formats

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>
Reviewed-by: Marek Olšák <marek.olsak at amd.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 e30c000..bb050b1 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -1781,6 +1781,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:




More information about the mesa-commit mailing list