RefreshOGLSDLSurface

to make it a little more clearer this is ogl only
This commit is contained in:
Alug committed 2024-05-18 23:52:05 +02:00
1 parent c605906408
commit 6fcea2f98e
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -223,7 +223,7 @@ static void CV_grframebuffer_OnChange(void)
ONLY_IF_GL_LOADED
HWD.pfnSetSpecialState(HWD_SET_FRAMEBUFFER, cv_grframebuffer.value);
I_DownSample();
RefreshSDLSurface();
RefreshOGLSDLSurface();
}
#endif
+1 -1
View File
@@ -140,7 +140,7 @@ UINT32 I_GetRefreshRate(void);
boolean I_UseNativeKeyboard(void);
#ifdef USE_FBO_OGL
void RefreshSDLSurface(void);
void RefreshOGLSDLSurface(void);
void I_DownSample(void);
extern boolean downsample;
#endif
+2 -2
View File
@@ -218,7 +218,7 @@ static void Impl_SetWindowIcon(void);
#ifdef USE_FBO_OGL
boolean downsample = false;
void RefreshSDLSurface(void)
void RefreshOGLSDLSurface(void)
{
if (rendermode == render_opengl)
OglSdlSurface(vid.width, vid.height);
@@ -763,7 +763,7 @@ void I_DownSample(void)
if ((vid.width > curmode.w) || (vid.height > curmode.h)) //check if current resolution is higher than current display resolution
{
downsample = true;
RefreshSDLSurface();
RefreshOGLSDLSurface();
}
else
downsample = false; // its not so no need to do crap