Minor optimizations.

Fix DXT1a support.
This commit is contained in:
castano
2008-02-04 10:01:43 +00:00
parent 42da2d63ce
commit 7b433f08f3
6 changed files with 56 additions and 29 deletions

View File

@ -43,10 +43,11 @@ void ColourFit::Compress( void* block )
bool isDxt1 = ( ( m_flags & kDxt1 ) != 0 );
if( isDxt1 )
{
Compress4( block );
Compress3( block );
if( !m_colours->IsTransparent() )
{
Compress3( block );
Compress4( block );
}
}
else