Fix weighted cluster fit.

Set metric before color sets.
This commit is contained in:
castano
2008-02-01 19:48:12 +00:00
parent 77168bb40b
commit b7f3ce664f
8 changed files with 55 additions and 30 deletions

View File

@ -28,12 +28,16 @@
namespace squish {
ColourFit::ColourFit( ColourSet const* colours, int flags )
: m_colours( colours ),
m_flags( flags )
ColourFit::ColourFit()
{
}
void ColourFit::SetColourSet( ColourSet const* colours, int flags )
{
m_colours = colours;
m_flags = flags;
}
void ColourFit::Compress( void* block )
{
bool isDxt1 = ( ( m_flags & kDxt1 ) != 0 );