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:
parent
6156c35617
commit
4eb27a8795
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user