From 36641c22683154fcc19f87af28b4146a19204d52 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Sat, 31 Aug 2013 16:43:32 -0400 Subject: [PATCH] Don't set all of the memory to zero when we specify an image without any pixels --- PVRTCEncoder/src/Image.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/PVRTCEncoder/src/Image.cpp b/PVRTCEncoder/src/Image.cpp index d14db71..66002f5 100644 --- a/PVRTCEncoder/src/Image.cpp +++ b/PVRTCEncoder/src/Image.cpp @@ -65,7 +65,6 @@ Image::Image(uint32 height, uint32 width) , m_Pixels(new Pixel[width * height]) { assert(width > 0); assert(height > 0); - memset(m_Pixels, 0, width * height * sizeof(Pixel)); } Image::Image(uint32 height, uint32 width, const Pixel *pixels)