Removed assert()
Not used in raylib this mechanism
This commit is contained in:
parent
8f4b53384c
commit
129c890a28
1 changed files with 2 additions and 2 deletions
|
@ -814,13 +814,13 @@ void ImageFormat(Image *image, int newFormat)
|
||||||
|
|
||||||
free(pixels);
|
free(pixels);
|
||||||
pixels = NULL;
|
pixels = NULL;
|
||||||
|
|
||||||
// In case original image had mipmaps, generate mipmaps for formated image
|
// In case original image had mipmaps, generate mipmaps for formated image
|
||||||
// NOTE: Original mipmaps are replaced by new ones, if custom mipmaps were used, they are lost
|
// NOTE: Original mipmaps are replaced by new ones, if custom mipmaps were used, they are lost
|
||||||
if (image->mipmaps > 1)
|
if (image->mipmaps > 1)
|
||||||
{
|
{
|
||||||
image->mipmaps = 1;
|
image->mipmaps = 1;
|
||||||
assert(image->data != NULL);
|
if (image->data != NULL) ImageMipmaps(image);
|
||||||
ImageMipmaps(image);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else TraceLog(LOG_WARNING, "Image data format is compressed, can not be converted");
|
else TraceLog(LOG_WARNING, "Image data format is compressed, can not be converted");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue