diff options
author | Brian <[email protected]> | 2007-08-18 16:25:16 +0100 |
---|---|---|
committer | Brian <[email protected]> | 2007-08-18 16:25:16 +0100 |
commit | 53cf87be1b93c760228e6a9af8115d2a9ff99337 (patch) | |
tree | 8cf9c96b522d057f963d541680d84d6abc93c9ab /src/mesa/main/teximage.c | |
parent | 95e84a09ce3f35f59465be28026e83c1bc40ae8a (diff) |
some fixes for compressed cube maps (bug 11986)
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r-- | src/mesa/main/teximage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 56322f87af1..1bc52d220ab 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -1998,7 +1998,7 @@ copytexture_error_check( GLcontext *ctx, GLuint dimensions, } if (is_compressed_format(ctx, internalFormat)) { - if (target != GL_TEXTURE_2D) { + if (!target_can_be_compressed(ctx, target)) { _mesa_error(ctx, GL_INVALID_ENUM, "glCopyTexImage%d(target)", dimensions); return GL_TRUE; @@ -2181,7 +2181,7 @@ copytexsubimage_error_check2( GLcontext *ctx, GLuint dimensions, } if (teximage->IsCompressed) { - if (target != GL_TEXTURE_2D) { + if (!target_can_be_compressed(ctx, target)) { _mesa_error(ctx, GL_INVALID_ENUM, "glCopyTexSubImage%d(target)", dimensions); return GL_TRUE; |