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
This commit is contained in:
alufolie91 committed 2026-11-10 17:48:27 +01:00
1 parent bffafa0540
commit 561f871e61
1 file changed
+3 -3
+3 -3
View File
@@ -1312,11 +1312,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