[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);
|
||||
#if defined(SUPPORT_IMAGE_MANIPULATION)
|
||||
if (image.mipmaps > 1)
|
||||
{
|
||||
ImageMipmaps(&mipmapped);
|
||||
ImageMipmaps(&faces);
|
||||
}
|
||||
#endif
|
||||
|
||||
// NOTE: Image formatting does not work with compressed textures
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user