From 827c86b194503fe2d65f8b471e066a8462613004 Mon Sep 17 00:00:00 2001 From: superp00t Date: Wed, 15 Nov 2023 19:29:01 -0500 Subject: [PATCH] feat(console): in the presence of -opengl launch flag, change GxApi to OpenGl --- src/console/Device.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/console/Device.cpp b/src/console/Device.cpp index b2f08c2..9bb65a2 100644 --- a/src/console/Device.cpp +++ b/src/console/Device.cpp @@ -198,6 +198,10 @@ void ConsoleDeviceInitialize(const char* title) { EGxApi api = GxApi_OpenGl; #if defined(WHOA_SYSTEM_WIN) api = GxApi_D3d9; + + if (CmdLineGetBool(CMD_OPENGL)) { + api = GxApi_OpenGl; + } #elif defined(WHOA_SYSTEM_MAC) api = GxApi_GLL; #endif