Solved RAM crashes hopefully :)

This commit is contained in:
Yair Morgenstern
2023-04-17 08:49:19 +03:00
parent e313f00f6d
commit 0bf5cae401

View File

@ -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) {