mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-14 01:48:04 -04:00
properly generate mipmaps for sprite textures
This commit is contained in:
parent
8b65d1d059
commit
ddc6ba0de4
@ -63,7 +63,7 @@ class SpriteTexture(private val original: Texture) : Texture {
|
||||
buffer.copyFrom(original, bytesPerTexture * i, 0, bytesPerTexture)
|
||||
buffer.flip()
|
||||
|
||||
val splitTexture = MemoryTexture(size, mipmaps = this.original.mipmaps, buffer = buffer)
|
||||
val splitTexture = MemoryTexture(size, mipmaps = true, buffer = buffer)
|
||||
|
||||
splitTextures += splitTexture
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user