mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Initial support for integer format textures.
They can't be rendered to and ImageData can't use the formats, for now.
This commit is contained in:
@@ -504,6 +504,9 @@ void Texture::generateMipmaps()
|
||||
if (isPixelFormatDepthStencil(format))
|
||||
throw love::Exception("generateMipmaps cannot be called on a depth/stencil Texture.");
|
||||
|
||||
if (isPixelFormatInteger(format))
|
||||
throw love::Exception("generateMipmaps cannot be called on an integer Texture.");
|
||||
|
||||
generateMipmapsInternal();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user