mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-11 00:08:58 +07:00
Solved RAM crashes hopefully :)
This commit is contained in:
@ -295,6 +295,9 @@ object Fonts {
|
||||
Gdx.gl.glReadPixels(0, 0, w, h, GL20.GL_RGBA, GL20.GL_UNSIGNED_BYTE, pixmap.pixels)
|
||||
frameBuffer.end()
|
||||
|
||||
spriteBatch.dispose()
|
||||
frameBuffer.dispose()
|
||||
|
||||
// Pixmap is now *upside down* so we need to flip it around the y axis
|
||||
for (i in 0..w)
|
||||
for (j in 0..h/2) {
|
||||
|
Reference in New Issue
Block a user