Skip to content

Commit 2b93c82

Browse files
committed
Removed deprecated function call
1 parent fb14525 commit 2b93c82

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

common/src/main/kotlin/com/lambda/graphics/texture/TextureUtils.kt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,9 @@ import java.awt.image.BufferedImage
3939
import java.nio.ByteBuffer
4040

4141
object TextureUtils {
42-
private const val COMPRESSION_LEVEL = -1
43-
private const val THREADED_COMPRESSION = false
44-
4542
val encoderPreset = PngEncoder()
46-
.withCompressionLevel(COMPRESSION_LEVEL)
47-
.withMultiThreadedCompressionEnabled(THREADED_COMPRESSION)
43+
.withCompressionLevel(-1)
44+
.withMultiThreadedCompressionDisabled()
4845

4946
fun bindTexture(id: Int, slot: Int = 0) {
5047
glActiveTexture(GL_TEXTURE0 + slot)

0 commit comments

Comments
 (0)