REVIEWED: DecompressData(), memory reallocation
This commit is contained in:
parent
3431d58586
commit
4407533a41
1 changed files with 6 additions and 2 deletions
|
|
@ -4800,7 +4800,7 @@ static int GenerateMipmaps(unsigned char *data, int baseWidth, int baseHeight)
|
|||
unsigned char *temp = RL_REALLOC(data, size);
|
||||
|
||||
if (temp != NULL) data = temp;
|
||||
else TRACELOG(LOG_WARNING, "TEXTURE: Failed to allocate required mipmaps memory");
|
||||
else TRACELOG(LOG_WARNING, "TEXTURE: Failed to re-allocate required mipmaps memory");
|
||||
|
||||
width = baseWidth;
|
||||
height = baseHeight;
|
||||
|
|
|
|||
Loading…
Reference in a new issue