File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -98,10 +98,8 @@ void CEngineAPI::InitializeNotDedicated()
9898}
9999#endif // DEDICATED_SERVER
100100
101- void CEngineAPI::Initialize ( void )
101+ void CEngineAPI::InitializeRenderers ( )
102102{
103- // ////////////////////////////////////////////////////////////////////////
104- // render
105103 constexpr pcstr r1_name = " xrRender_R1" ;
106104
107105#ifndef DEDICATED_SERVER
@@ -122,11 +120,18 @@ void CEngineAPI::Initialize(void)
122120 R_ASSERT (hRender);
123121 g_current_renderer = 1 ;
124122 }
123+
125124 // ask current renderer to setup GlobalEnv
126- using SetupEnvFunc = void (*)();
125+ using SetupEnvFunc = void (*)();
127126 auto setupEnv = (SetupEnvFunc)hRender->getProcAddress (" SetupEnv" );
128127 R_ASSERT (setupEnv);
129128 setupEnv ();
129+ }
130+
131+ void CEngineAPI::Initialize (void )
132+ {
133+ InitializeRenderers ();
134+
130135 // game
131136 {
132137 constexpr pcstr g_name = " xrGame" ;
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ class ENGINE_API CEngineAPI
5959 VTResume* tune_resume;
6060 void Initialize ();
6161
62+ void InitializeRenderers ();
6263#ifndef DEDICATED_SERVER
6364 void InitializeNotDedicated ();
6465#endif // DEDICATED_SERVER
You can’t perform that action at this time.
0 commit comments