mesa: Allow GL_TEXTURE_CUBE_MAP target with compressed internal formats
authorAnuj Phogat <anuj.phogat@gmail.com>
Tue, 10 Jun 2014 00:28:33 +0000 (17:28 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Tue, 5 Aug 2014 00:12:29 +0000 (17:12 -0700)
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@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/teximage.c

index e30c000bcee8b6e6fac038a19cc28b1082c62653..bb050b1882a340b3ed19926794b9a8a04bc46f6b 100644 (file)
@@ -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: