From f822c158682ea81eb6f143026aaa330d4b872625 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Thu, 29 Aug 2013 18:34:25 -0400 Subject: [PATCH] Pixel depth defaults to 8 --- PVRTCEncoder/src/Pixel.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PVRTCEncoder/src/Pixel.h b/PVRTCEncoder/src/Pixel.h index 585af3f..50ee075 100644 --- a/PVRTCEncoder/src/Pixel.h +++ b/PVRTCEncoder/src/Pixel.h @@ -59,7 +59,9 @@ namespace PVRTCC { class Pixel { public: - Pixel(): m_R(0), m_G(0), m_B(0), m_A(0) { } + Pixel(): m_R(0), m_G(0), m_B(0), m_A(0) { + for(int i = 0; i < 4; i++) m_BitDepth[i] = 8; + } explicit Pixel(const uint8 *bits, const uint8 channelDepth[4] = static_cast(0),