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