mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 12:41:21 +00:00
Initialize the screen handling code before the renderer
This change is needed to break a otherwise fatal cycle: - The renderer calls VID_MenuInit() - VID_MenuInit() calls SCR_GetMenuScale() - SCR_GetMenuScale() relies on gl_menuscale which is still uninitialized at this time.
This commit is contained in:
parent
97139029b0
commit
2795088e86
1 changed files with 2 additions and 2 deletions
|
@ -873,6 +873,8 @@ CL_Init(void)
|
|||
|
||||
S_Init();
|
||||
|
||||
SCR_Init();
|
||||
|
||||
VID_Init();
|
||||
|
||||
V_Init();
|
||||
|
@ -883,8 +885,6 @@ CL_Init(void)
|
|||
|
||||
M_Init();
|
||||
|
||||
SCR_Init();
|
||||
|
||||
cls.disable_screen = true; /* don't draw yet */
|
||||
|
||||
#ifdef CDA
|
||||
|
|
Loading…
Reference in a new issue