From 5004dd770cf4cc800ccdd9889e05720b02b55c57 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Fri, 29 Jun 2018 10:26:57 -0700 Subject: [PATCH] Fixed more uninit issues with HDRColorA --- DirectXTex/BC.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DirectXTex/BC.cpp b/DirectXTex/BC.cpp index 9e16330..4c412fc 100644 --- a/DirectXTex/BC.cpp +++ b/DirectXTex/BC.cpp @@ -505,10 +505,12 @@ namespace ColorC.r = ColorA.r * g_LuminanceInv.r; ColorC.g = ColorA.g * g_LuminanceInv.g; ColorC.b = ColorA.b * g_LuminanceInv.b; + ColorC.a = ColorA.a; ColorD.r = ColorB.r * g_LuminanceInv.r; ColorD.g = ColorB.g * g_LuminanceInv.g; ColorD.b = ColorB.b * g_LuminanceInv.b; + ColorD.a = ColorB.a; } uint16_t wColorA = Encode565(&ColorC);