Skip to content

Commit

Permalink
Don't pre-multiply fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
Reco1I committed Dec 27, 2024
1 parent 9ecb8c7 commit 85561f5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/com/reco1l/andengine/text/ExtendedText.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 85561f5

Please sign in to comment.