1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Adding assert on malloc

We do this in other places and I think it's good behaviour for the
exceptional occasion that we cannot allocate memory.
This commit is contained in:
matto 2015-08-30 18:15:16 -04:00 committed by Sergey Lipskiy
parent 6156c35617
commit 4eb27a8795

View File

@ -999,6 +999,7 @@ void TextureCache::_load(u32 _tile, CachedTexture *_pTexture)
} }
pDest = (u32*)malloc(_pTexture->textureBytes); pDest = (u32*)malloc(_pTexture->textureBytes);
assert(pDest != NULL);
GLint mipLevel = 0, maxLevel = 0; GLint mipLevel = 0, maxLevel = 0;
#ifndef GLES2 #ifndef GLES2