More fixes

- check for an empty shapName, not just a NULL one twice
 - fix "&s" in printf
 - fix potential memory leak
 - GFXCopyPixels wasn't checking the height properly which could result in some meory corruption unpleasantness
This commit is contained in:
Andy Maloney 2013-12-04 16:56:26 -05:00
parent 65099897f4
commit d63b820e35
4 changed files with 8 additions and 4 deletions

View file

@ -81,7 +81,7 @@ void GFXCopyPixels( GFXFormat fromFormat, U32 fromWidth, U32 fromHeight, U8* fr
{
if( fromFormat == toFormat
&& fromWidth == toWidth
&& fromHeight == fromHeight )
&& fromHeight == toHeight )
dMemcpy( toData, fromData, fromWidth * fromHeight * GFXFormatInfo( fromFormat ).getBytesPerPixel() );
else
{