# HG changeset patch # User Ritor1 # Date 1381687031 -21600 # Node ID 7954c2f385b5f756cf264c346f9f807a81c07fc1 # Parent f3db8e8cbad5e2efd151817a832a98936c0e1921 m diff -r f3db8e8cbad5 -r 7954c2f385b5 Texture.cpp --- a/Texture.cpp Sun Oct 13 22:53:45 2013 +0600 +++ b/Texture.cpp Sun Oct 13 23:57:11 2013 +0600 @@ -557,6 +557,7 @@ this->uWidth = header1.right - header1.left + 1; this->uHeight = header1.bottom - header1.up + 1; this->uNumPixels = (signed __int16)this->uWidth * (signed __int16)this->uHeight; + this->pPixels = (unsigned __int16 *)malloc(2 * this->uNumPixels + 4); if ( this->pPixels ) { if ( mode )