fix(console): use InternalSet() when setting the launch value of CVar gxApi

This commit is contained in:
superp00t 2023-12-16 20:28:23 -05:00
parent 742e53f148
commit d6de5b56ec

View File

@ -297,7 +297,9 @@ void ConsoleDeviceInitialize(const char* title) {
}
}
s_cvGxApi->Set(g_gxApiNames[api], true, false, false, true);
// Set internally (CVar value reflects the current gxApi at launch),
// this will not Set() as CVar gxApi is latched
s_cvGxApi->InternalSet(g_gxApiNames[api], true, false, false, true);
CGxDevice* device = GxDevCreate(api, OsWindowProc, format);