changeset 1846:7954c2f385b5

m
author Ritor1
date Sun, 13 Oct 2013 23:57:11 +0600
parents f3db8e8cbad5
children 3b39b70e8e93
files Texture.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 )