From 7c6656f442bbaa5099d104ffe6d5cc7a0fccc408 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 10 Nov 2026 17:46:04 +0100 Subject: [PATCH] fix downsample state not refreshing in the right place needs to be done before refreshing the surface, as OglSdlSurface needs to determine the state to toggle the fbo --- src/sdl/i_video.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 45263702a..9447da840 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -1292,11 +1292,11 @@ void I_CheckDownSampleState(boolean forcerefresh) // state changed or fbo was toggled if (vid_downsampling != newdownsamplestate || forcerefresh) { - //printf("downsample changed from %d to %d\n", vid_downsampling, curdownsamplestate); + //printf("downsample changed from %d to %d\n", vid_downsampling, newdownsamplestate); + // needs to be reset before refreshing the gl surface! + vid_downsampling = newdownsamplestate; OglSdlSurface(vid.width, vid.height); } - - vid_downsampling = newdownsamplestate; } #endif