Skip to content

Commit

Permalink
Properly ordering startup code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinnegatamante committed Mar 24, 2018
1 parent d0ea673 commit 9068e35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/cl_main.c
Expand Up @@ -1802,6 +1802,8 @@ void CL_Init (void)

Con_Init ();
S_Init (); // sound must be initialized after window is created
Com_Printf("CDAudio_Init called");
CDAudio_Init ();
VID_Init ();

V_Init ();
Expand All @@ -1813,8 +1815,6 @@ void CL_Init (void)
Com_Printf("SCR_Init called");
SCR_Init ();
cls.disable_screen = true; // don't draw yet
Com_Printf("CDAudio_Init called");
CDAudio_Init ();
Com_Printf("CL_InitLocal called");
CL_InitLocal ();
Com_Printf("IN_Init called");
Expand Down
2 changes: 2 additions & 0 deletions psp2/glimp_psp2.c
Expand Up @@ -96,6 +96,8 @@ void GLimp_Shutdown( void )
*/
int GLimp_Init( void *hinstance, void *wndproc )
{
vglInit(0x800000);
vglUseVram(GL_TRUE);
gl_config.allow_cds = true;
return true;
}
Expand Down
1 change: 0 additions & 1 deletion psp2/sys_psp2.c
Expand Up @@ -414,7 +414,6 @@ extern void IN_StopRumble();
//=============================================================================
int quake_main (unsigned int argc, void* argv){
int time, oldtime, newtime;
vglInit(0x800000);
Qcommon_Init (argc, argv);

oldtime = Sys_Milliseconds ();
Expand Down

0 comments on commit 9068e35

Please sign in to comment.