From da44e581606fc8b6aeb07b8a75b71e78978d82cf Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Mon, 11 Mar 2013 15:08:44 -0400 Subject: [PATCH] Actual bug fix --- BPTCEncoder/src/BC7Compressor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BPTCEncoder/src/BC7Compressor.cpp b/BPTCEncoder/src/BC7Compressor.cpp index 6957f8e..ceb040d 100755 --- a/BPTCEncoder/src/BC7Compressor.cpp +++ b/BPTCEncoder/src/BC7Compressor.cpp @@ -1570,7 +1570,7 @@ namespace BC7C CompressBC7Block((const uint32 *)in, out); } - if(TestAndSet(cjl.GetFinishedFlag(jobIdx)) != 0) { + if(TestAndSet(cjl.GetFinishedFlag(jobIdx)) == 0) { cjl.m_CurrentJobIndex++; cjl.m_CurrentBlockIndex = 0; }