diff options
author | Anuj Phogat <[email protected]> | 2014-06-09 17:28:33 -0700 |
---|---|---|
committer | Anuj Phogat <[email protected]> | 2014-08-04 17:12:29 -0700 |
commit | c7def2257aae3b73ba37609dfbc0a0f35fa99c81 (patch) | |
tree | bfd0287ce324c270caaa3a68e2f5fafa53c52d5d /src | |
parent | 2fc420546199b5834ea3a0741d718333596ee235 (diff) |
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: <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/teximage.c | 1 |
1 files changed, 1 insertions, 0 deletions
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: |