mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 06:51:30 -04:00
Resolved #9194 - Clear frameBuffer before we use it to draw images
This commit is contained in:
parent
35fbb5f9f3
commit
4da4d35a28
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user