aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-08-22 07:39:08 +0200
committermarha <marha@users.sourceforge.net>2012-08-22 07:39:08 +0200
commite91ed68959d63f79e3b4973bc80c7ebcd07ed021 (patch)
tree1d205aa717e142e363e6f0091e58db424875ff8a /mesalib/src
parent7cd970786d72a68b735f33904bdded6c8aebdf33 (diff)
downloadvcxsrv-e91ed68959d63f79e3b4973bc80c7ebcd07ed021.tar.gz
vcxsrv-e91ed68959d63f79e3b4973bc80c7ebcd07ed021.tar.bz2
vcxsrv-e91ed68959d63f79e3b4973bc80c7ebcd07ed021.zip
mesa xserver git update 22 Aug 2012
Diffstat (limited to 'mesalib/src')
-rw-r--r--mesalib/src/mesa/main/teximage.c32
1 files changed, 2 insertions, 30 deletions
diff --git a/mesalib/src/mesa/main/teximage.c b/mesalib/src/mesa/main/teximage.c
index fd02a1be2..27294ba80 100644
--- a/mesalib/src/mesa/main/teximage.c
+++ b/mesalib/src/mesa/main/teximage.c
@@ -541,32 +541,6 @@ _mesa_base_tex_format( struct gl_context *ctx, GLint internalFormat )
/**
- * Is the given texture format a generic compressed format?
- */
-static GLboolean
-is_generic_compressed_format(GLenum format)
-{
- switch (format) {
- case GL_COMPRESSED_RED:
- case GL_COMPRESSED_RG:
- case GL_COMPRESSED_RGB:
- case GL_COMPRESSED_RGBA:
- case GL_COMPRESSED_ALPHA:
- case GL_COMPRESSED_LUMINANCE:
- case GL_COMPRESSED_LUMINANCE_ALPHA:
- case GL_COMPRESSED_INTENSITY:
- case GL_COMPRESSED_SRGB:
- case GL_COMPRESSED_SRGB_ALPHA:
- case GL_COMPRESSED_SLUMINANCE:
- case GL_COMPRESSED_SLUMINANCE_ALPHA:
- return GL_TRUE;
- default:
- return GL_FALSE;
- }
-}
-
-
-/**
* For cube map faces, return a face index in [0,5].
* For other targets return 0;
*/
@@ -1745,8 +1719,7 @@ texture_error_check( struct gl_context *ctx,
}
/* additional checks for compressed textures */
- if (_mesa_is_compressed_format(ctx, internalFormat) ||
- is_generic_compressed_format(internalFormat)) {
+ if (_mesa_is_compressed_format(ctx, internalFormat)) {
if (!target_can_be_compressed(ctx, target, internalFormat)) {
if (!isProxy)
_mesa_error(ctx, GL_INVALID_ENUM,
@@ -2077,8 +2050,7 @@ copytexture_error_check( struct gl_context *ctx, GLuint dimensions,
return GL_TRUE;
}
- if (_mesa_is_compressed_format(ctx, internalFormat) ||
- is_generic_compressed_format(internalFormat)) {
+ if (_mesa_is_compressed_format(ctx, internalFormat)) {
if (!target_can_be_compressed(ctx, target, internalFormat)) {
_mesa_error(ctx, GL_INVALID_ENUM,
"glCopyTexImage%dD(target)", dimensions);