mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-01-30 19:42:51 +03:00
feat(console): in the presence of -opengl launch flag, change GxApi to OpenGl
This commit is contained in:
parent
dd52d00736
commit
827c86b194
@ -198,6 +198,10 @@ void ConsoleDeviceInitialize(const char* title) {
|
|||||||
EGxApi api = GxApi_OpenGl;
|
EGxApi api = GxApi_OpenGl;
|
||||||
#if defined(WHOA_SYSTEM_WIN)
|
#if defined(WHOA_SYSTEM_WIN)
|
||||||
api = GxApi_D3d9;
|
api = GxApi_D3d9;
|
||||||
|
|
||||||
|
if (CmdLineGetBool(CMD_OPENGL)) {
|
||||||
|
api = GxApi_OpenGl;
|
||||||
|
}
|
||||||
#elif defined(WHOA_SYSTEM_MAC)
|
#elif defined(WHOA_SYSTEM_MAC)
|
||||||
api = GxApi_GLL;
|
api = GxApi_GLL;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user