From bdbb72e43d493522488ab95dc4d5f1420aa5c905 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 16 Apr 2009 02:05:13 +0000 Subject: [PATCH] - Crap. SVN r1548 (trunk) --- src/textures/multipatchtexture.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/textures/multipatchtexture.cpp b/src/textures/multipatchtexture.cpp index c34f93e4e..3af98f224 100644 --- a/src/textures/multipatchtexture.cpp +++ b/src/textures/multipatchtexture.cpp @@ -488,6 +488,7 @@ void FMultiPatchTexture::MakeTexture () // Add a little extra space at the end if the texture's height is not // a power of 2, in case somebody accidentally makes it repeat vertically. int numpix = Width * Height + (1 << HeightBits) - Height; + BYTE blendwork[256]; bool hasTranslucent = false; Pixels = new BYTE[numpix]; @@ -522,8 +523,6 @@ void FMultiPatchTexture::MakeTexture () // In case there are translucent patches let's do the composition in // True color to keep as much precision as possible before downconverting to the palette. BYTE *buffer = new BYTE[Width * Height * 4]; - BYTE blendwork[256]; - memset(buffer, 0, Width * Height * 4); FillBuffer(buffer, Width * 4, Height, TEX_RGB); for(int y = 0; y < Height; y++)