From 7a7da3729c62a82bf593f3ccce43d1f8d8249b86 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Mon, 14 Oct 2024 16:01:50 +0200 Subject: [PATCH] Respect a window's rendering flag state --- .../windowing/glfw/implementable/GlfwManagementClass.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/GlfwManagementClass.java b/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/GlfwManagementClass.java index 0afe5b22..ab581ef3 100644 --- a/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/GlfwManagementClass.java +++ b/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/GlfwManagementClass.java @@ -69,6 +69,9 @@ public final class GlfwManagementClass extends ApiManagementClass { // Update and render all windows for (Window window : Window.getWindows()) { + if (!window.isRendering()) + continue; + try { window.updateState(); window.render();