mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
improve logic for detecting when Texture:generateMipmaps is supported
This commit is contained in:
@@ -269,8 +269,6 @@ void Texture::uploadByteData(PixelFormat pixelformat, const void *data, size_t s
|
||||
|
||||
void Texture::generateMipmapsInternal()
|
||||
{ @autoreleasepool {
|
||||
// TODO: alternate method for non-color-renderable and non-filterable
|
||||
// pixel formats.
|
||||
id<MTLBlitCommandEncoder> encoder = Graphics::getInstance()->useBlitEncoder();
|
||||
[encoder generateMipmapsForTexture:texture];
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user