From: Anuj Phogat Date: Tue, 10 Jun 2014 00:28:33 +0000 (-0700) Subject: mesa: Allow GL_TEXTURE_CUBE_MAP target with compressed internal formats X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c7def2257aae3b73ba37609dfbc0a0f35fa99c81;p=mesa.git 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: Reviewed-by: Marek Olšák --- diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index e30c000bcee..bb050b1882a 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: