that wasnt the onchange im sleepy

This commit is contained in:
Alug committed 2024-04-10 17:40:43 +02:00
1 parent 94340e6634
commit 1391e556d6
2 files changed
+2 -2

No files matched your search

+1
View File
@@ -168,6 +168,7 @@ static void CV_grframebuffer_OnChange(void)
{
ONLY_IF_GL_LOADED
HWD.pfnSetSpecialState(HWD_SET_FRAMEBUFFER, cv_grframebuffer.value);
I_DownSample();
RefreshSDLSurface();
}
+1 -2
View File
@@ -208,7 +208,6 @@ boolean downsample = false;
#ifdef HWRENDER
void RefreshSDLSurface(void)
{
I_DownSample();
OglSdlSurface(vid.width, vid.height);
}
#endif
@@ -781,8 +780,8 @@ void I_DownSample(void)
}
int currentDisplayIndex = SDL_GetWindowDisplayIndex(window);
SDL_DisplayMode curmode;
if (SDL_GetCurrentDisplayMode(currentDisplayIndex, &curmode) == 0)
{
if (cv_grframebuffer.value && ((vid.width > curmode.w) || (vid.height > curmode.h))) //framebuffer downsampler thinge