From 4f92d6611117c9d555da4fc8658c13a890e5a669 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 16 Nov 2017 23:00:28 -0800 Subject: [PATCH] Minor code review --- DirectXTex/BC6HBC7.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DirectXTex/BC6HBC7.cpp b/DirectXTex/BC6HBC7.cpp index b98eef1..837513e 100644 --- a/DirectXTex/BC6HBC7.cpp +++ b/DirectXTex/BC6HBC7.cpp @@ -2143,7 +2143,7 @@ void D3DX_BC6H::OptimizeOne(const EncodeParams* pEP, const INTColor aColors[], s int do_b; // now optimize each channel separately - for (uint8_t ch = 0; ch < 3; ++ch) + for (uint8_t ch = 0; ch < BC6H_NUM_CHANNELS; ++ch) { // figure out which endpoint when perturbed gives the most improvement and start there // if we just alternate, we can easily end up in a local minima