From a58501f56f0076595705baa06917628325a09ea5 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Wed, 7 May 2014 22:59:49 +0200 Subject: [PATCH] Fast track zero partition selection --- ASTCEncoder/src/Utils.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ASTCEncoder/src/Utils.h b/ASTCEncoder/src/Utils.h index ef2112d..1186b2a 100644 --- a/ASTCEncoder/src/Utils.h +++ b/ASTCEncoder/src/Utils.h @@ -141,6 +141,9 @@ namespace ASTCC { static int32 SelectPartition(int32 seed, int32 x, int32 y, int32 z, int32 partitionCount, int32 smallBlock) { + if(1 == partitionCount) + return 0; + if(smallBlock) { x <<= 1; y <<= 1;