mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 20:10:24 +01:00
mesa: remove unneeded compressed texure size checks
This commit is contained in:
parent
ec17001cd4
commit
3b5cd7d74a
1 changed files with 0 additions and 6 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue