OSDN Git Service

REFINE_LOOP: actually do loop, as this DOES do something even for simple weight functions
authorRudolf Polzer <divverent@xonotic.org>
Fri, 15 Jul 2011 22:38:31 +0000 (00:38 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 15 Jul 2011 22:38:31 +0000 (00:38 +0200)
s2tc_compressor.cpp

index 72f46d6..897aea4 100644 (file)
@@ -866,10 +866,9 @@ namespace
                {
                        case REFINE_NEVER:
                                return s2tc_encode_block<dxt, ColorDist, mode, REFINE_NEVER>;
-                       case REFINE_CHECK:
-                               if(need_refine_check<ColorDist>())
-                                       return s2tc_encode_block<dxt, ColorDist, mode, REFINE_CHECK>;
                        case REFINE_LOOP:
+                               return s2tc_encode_block<dxt, ColorDist, mode, REFINE_LOOP>;
+                       case REFINE_CHECK:
                                if(need_refine_check<ColorDist>())
                                        return s2tc_encode_block<dxt, ColorDist, mode, REFINE_CHECK>;
                        default: