[rtextures] Only build cubemap mipmaps when necessary
This commit is contained in:
parent
7bfc8e8ca7
commit
151cfa8394
|
|
@ -4208,8 +4208,11 @@ TextureCubemap LoadTextureCubemap(Image image, int layout)
|
||||||
|
|
||||||
Image mipmapped = ImageCopy(image);
|
Image mipmapped = ImageCopy(image);
|
||||||
#if defined(SUPPORT_IMAGE_MANIPULATION)
|
#if defined(SUPPORT_IMAGE_MANIPULATION)
|
||||||
ImageMipmaps(&mipmapped);
|
if (image.mipmaps > 1)
|
||||||
ImageMipmaps(&faces);
|
{
|
||||||
|
ImageMipmaps(&mipmapped);
|
||||||
|
ImageMipmaps(&faces);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// NOTE: Image formatting does not work with compressed textures
|
// NOTE: Image formatting does not work with compressed textures
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user