From 85561f506ad95c6f65b4381387573641b1062e45 Mon Sep 17 00:00:00 2001 From: Geronimo Ferruccio Date: Fri, 27 Dec 2024 00:29:55 -0300 Subject: [PATCH] Don't pre-multiply fonts --- src/com/reco1l/andengine/text/ExtendedText.kt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/com/reco1l/andengine/text/ExtendedText.kt b/src/com/reco1l/andengine/text/ExtendedText.kt index 9951fdd6c..713feddfd 100644 --- a/src/com/reco1l/andengine/text/ExtendedText.kt +++ b/src/com/reco1l/andengine/text/ExtendedText.kt @@ -121,12 +121,6 @@ open class ExtendedText : ExtendedEntity() { shouldRebuildTextureBuffer = false textureBuffer = TextTextureBuffer(2 * VERTICES_PER_CHARACTER * maximumSize, GL_STATIC_DRAW, true) - - if (font!!.texture.textureOptions.mPreMultipyAlpha) { - setBlendFunction(BLENDFUNCTION_SOURCE_PREMULTIPLYALPHA_DEFAULT, BLENDFUNCTION_DESTINATION_PREMULTIPLYALPHA_DEFAULT) - } else { - setBlendFunction(BLENDFUNCTION_SOURCE_DEFAULT, BLENDFUNCTION_DESTINATION_DEFAULT) - } } val lines = text.split('\n').toTypedArray()