mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-13 01:08:25 +07:00
Resolved #9194 - Clear frameBuffer before we use it to draw images
This commit is contained in:
@ -285,6 +285,8 @@ object Fonts {
|
|||||||
FrameBuffer(Pixmap.Format.RGBA8888, Gdx.graphics.width, Gdx.graphics.height, false)
|
FrameBuffer(Pixmap.Format.RGBA8888, Gdx.graphics.width, Gdx.graphics.height, false)
|
||||||
frameBuffer.begin()
|
frameBuffer.begin()
|
||||||
|
|
||||||
|
Gdx.gl.glClearColor(0f,0f,0f,0f)
|
||||||
|
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT)
|
||||||
spriteBatch.begin()
|
spriteBatch.begin()
|
||||||
actor.draw(spriteBatch, 1f)
|
actor.draw(spriteBatch, 1f)
|
||||||
spriteBatch.end()
|
spriteBatch.end()
|
||||||
|
Reference in New Issue
Block a user