mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-15 10:25:06 -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.copyFrom(original, bytesPerTexture * i, 0, bytesPerTexture)
|
||||||
buffer.flip()
|
buffer.flip()
|
||||||
|
|
||||||
val splitTexture = MemoryTexture(size, mipmaps = this.original.mipmaps, buffer = buffer)
|
val splitTexture = MemoryTexture(size, mipmaps = true, buffer = buffer)
|
||||||
|
|
||||||
splitTextures += splitTexture
|
splitTextures += splitTexture
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user