From 0a4f6e42c1e8501f498d42356575e679998fbc2e Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Fri, 16 May 2025 16:55:35 +0200 Subject: Set the GL viewport on resize of the window --- src/main/ui/x11/ui.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/main/ui/x11/ui.c b/src/main/ui/x11/ui.c index cf08ac0..369eb7d 100644 --- a/src/main/ui/x11/ui.c +++ b/src/main/ui/x11/ui.c @@ -114,6 +114,7 @@ static void ui_on_resize(XEvent event) { if (event.type != ConfigureNotify) return; + glViewport(0, 0, event.xconfigure.width, event.xconfigure.height); } void -- cgit v1.2.3