diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/client/StarboundClient.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/client/StarboundClient.kt index 1e10e705..ef18f9d3 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/client/StarboundClient.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/client/StarboundClient.kt @@ -182,9 +182,9 @@ class StarboundClient(val starbound: Starbound) : Closeable { isRenderingGame = false } else { isRenderingGame = true + gl.setViewport(0, 0, w, h) viewportMatrixScreen = updateViewportMatrixScreen() viewportMatrixWorld = updateViewportMatrixWorld() - gl.setViewport(0, 0, w, h) lightRenderer.resizeFramebuffer(w, h)