We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb14525 commit 2b93c82Copy full SHA for 2b93c82
common/src/main/kotlin/com/lambda/graphics/texture/TextureUtils.kt
@@ -39,12 +39,9 @@ import java.awt.image.BufferedImage
39
import java.nio.ByteBuffer
40
41
object TextureUtils {
42
- private const val COMPRESSION_LEVEL = -1
43
- private const val THREADED_COMPRESSION = false
44
-
45
val encoderPreset = PngEncoder()
46
- .withCompressionLevel(COMPRESSION_LEVEL)
47
- .withMultiThreadedCompressionEnabled(THREADED_COMPRESSION)
+ .withCompressionLevel(-1)
+ .withMultiThreadedCompressionDisabled()
48
49
fun bindTexture(id: Int, slot: Int = 0) {
50
glActiveTexture(GL_TEXTURE0 + slot)
0 commit comments