Respect a window's rendering flag state

This commit is contained in:
JeremyStar™ 2024-10-14 16:01:50 +02:00
parent 2f0bc19e7c
commit 7a7da3729c
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -69,6 +69,9 @@ public final class GlfwManagementClass extends ApiManagementClass {
// Update and render all windows // Update and render all windows
for (Window window : Window.getWindows()) { for (Window window : Window.getWindows()) {
if (!window.isRendering())
continue;
try { try {
window.updateState(); window.updateState();
window.render(); window.render();