diff --git a/src/Textures.cpp b/src/Textures.cpp index 232e1642..234b3fb4 100644 --- a/src/Textures.cpp +++ b/src/Textures.cpp @@ -999,6 +999,7 @@ void TextureCache::_load(u32 _tile, CachedTexture *_pTexture) } pDest = (u32*)malloc(_pTexture->textureBytes); + assert(pDest != NULL); GLint mipLevel = 0, maxLevel = 0; #ifndef GLES2