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:46:04 +01:00
1 parent 96b571d005
commit 7c6656f442
1 file changed
+3 -3
+3 -3
View File
@@ -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