summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhillip Klaus Krause <[email protected]>2008-11-28 13:54:08 -0700
committerBrian Paul <[email protected]>2008-11-28 13:54:08 -0700
commit3b5cd7d74adaeb4c0cf27925ba187235c7a4cff4 (patch)
treeb6e9a47501f0b45f79d5d88b67a9b1a4abf5d644
parentec17001cd4e17240039b9b96083ef9b831720107 (diff)
mesa: remove unneeded compressed texure size checks
-rw-r--r--src/mesa/main/texcompress.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/main/texcompress.c b/src/mesa/main/texcompress.c
index c44d594d683..3ff633acd2b 100644
--- a/src/mesa/main/texcompress.c
+++ b/src/mesa/main/texcompress.c
@@ -149,8 +149,6 @@ _mesa_compressed_texture_size( GLcontext *ctx,
/* Textures smaller than 8x4 will effectively be made into 8x4 and
* take 16 bytes.
*/
- if (size < 16)
- size = 16;
return size;
case MESA_FORMAT_RGB_DXT1:
case MESA_FORMAT_RGBA_DXT1:
@@ -162,8 +160,6 @@ _mesa_compressed_texture_size( GLcontext *ctx,
/* Textures smaller than 4x4 will effectively be made into 4x4 and
* take 8 bytes.
*/
- if (size < 8)
- size = 8;
return size;
case MESA_FORMAT_RGBA_DXT3:
case MESA_FORMAT_RGBA_DXT5:
@@ -175,8 +171,6 @@ _mesa_compressed_texture_size( GLcontext *ctx,
/* Textures smaller than 4x4 will effectively be made into 4x4 and
* take 16 bytes.
*/
- if (size < 16)
- size = 16;
return size;
default:
_mesa_problem(ctx, "bad mesaFormat in _mesa_compressed_texture_size");