gl4 issues fixes

Based on 0474e4a4
This commit is contained in:
Denis Pauk 2025-03-30 22:41:34 +03:00
parent 0be9f16d3d
commit ccc7f276a1

View file

@ -365,12 +365,16 @@ SetMode_impl(int *pwidth, int *pheight, int mode, int fullscreen)
R_Printf(PRINT_ALL, " %dx%d (vid_fullscreen %i)\n", *pwidth, *pheight, fullscreen);
if (!ri.GLimp_InitGraphics(fullscreen, pwidth, pheight))
{
return rserr_invalid_mode;
}
if (mode == -2 || fullscreen)
{
GL4_BindVBO(0);
}
/* This is totaly obscure: For some strange reasons the renderer
maintains two(!) repesentations of the resolution. One comes
from the client and is saved in gl4_newrefdef. The other one