From 62b8ca34ed86ce160cadaa684bba2b733c3ad7c6 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Thu, 20 Apr 2023 23:51:44 +0700 Subject: [PATCH] =?UTF-8?q?=D0=BC=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/ru/dbotthepony/kstarbound/client/StarboundClient.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)