Resolved #9194 - Clear frameBuffer before we use it to draw images

This commit is contained in:
Yair Morgenstern
2023-04-18 23:09:33 +03:00
parent 35fbb5f9f3
commit 4da4d35a28

View File

@ -285,6 +285,8 @@ object Fonts {
FrameBuffer(Pixmap.Format.RGBA8888, Gdx.graphics.width, Gdx.graphics.height, false)
frameBuffer.begin()
Gdx.gl.glClearColor(0f,0f,0f,0f)
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT)
spriteBatch.begin()
actor.draw(spriteBatch, 1f)
spriteBatch.end()