that wasnt the onchange im sleepy

This commit is contained in:
Alug committed 2024-04-10 17:40:35 +02:00
1 parent 72231e5658
commit 10cf251b46
2 files changed
+2 -2

No files matched your search

+1
View File
@@ -170,6 +170,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
@@ -220,7 +220,6 @@ boolean downsample = false;
#ifdef HWRENDER
void RefreshSDLSurface(void)
{
I_DownSample();
OglSdlSurface(vid.width, vid.height);
}
#endif
@@ -755,8 +754,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