From b3de3f2c011bdc54c694722cc998c9066cb23576 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Thu, 12 Sep 2013 14:45:42 -0400 Subject: [PATCH] If our compile flag is set to output debug images with tests, then actually do it. --- PVRTCEncoder/test/DecompTestPVR.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PVRTCEncoder/test/DecompTestPVR.cpp b/PVRTCEncoder/test/DecompTestPVR.cpp index 6ac498a..e5a64f2 100644 --- a/PVRTCEncoder/test/DecompTestPVR.cpp +++ b/PVRTCEncoder/test/DecompTestPVR.cpp @@ -82,7 +82,11 @@ class ImageTester { uint32 *outPixels = new uint32[w * h]; DecompressionJob dcj(data, reinterpret_cast(outPixels), w, h); - PVRTCC::Decompress(dcj, PVRTCC::eWrapMode_Wrap); +#ifdef OUTPUT_DEBUG_IMAGE + PVRTCC::Decompress(dcj, twobpp, PVRTCC::eWrapMode_Wrap, true); +#else + PVRTCC::Decompress(dcj, twobpp, PVRTCC::eWrapMode_Wrap); +#endif bool result = pvrtexture::Transcode(pvrTex, pvrtexture::PVRStandard8PixelType,