mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-02-04 17:19:09 +00:00
feat(console): in the presence of -opengl launch flag, change GxApi to OpenGl
This commit is contained in:
parent
dd52d00736
commit
827c86b194
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue