mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -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.begin()
|
||||
|
||||
Gdx.gl.glClearColor(0f,0f,0f,0f)
|
||||
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT)
|
||||
spriteBatch.begin()
|
||||
actor.draw(spriteBatch, 1f)
|
||||
spriteBatch.end()
|
||||
|
Loading…
x
Reference in New Issue
Block a user