summaryrefslogtreecommitdiffstats
path: root/Common/NativeApp/src/Linux
diff options
context:
space:
mode:
Diffstat (limited to 'Common/NativeApp/src/Linux')
-rw-r--r--Common/NativeApp/src/Linux/LinuxMain.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Common/NativeApp/src/Linux/LinuxMain.cpp b/Common/NativeApp/src/Linux/LinuxMain.cpp
index 84cde9e..3e08fc5 100644
--- a/Common/NativeApp/src/Linux/LinuxMain.cpp
+++ b/Common/NativeApp/src/Linux/LinuxMain.cpp
@@ -438,11 +438,12 @@ int main (int argc, char ** argv)
UseVulkan = true;
if (argc > 1)
{
- const auto* Key = "mode=";
+ const auto* Key = "-mode ";
const auto* pos = strstr(argv[1], Key);
if (pos != nullptr)
{
pos += strlen(Key);
+ while(*pos != 0 && *pos == ' ')++pos;
if (strcasecmp(pos, "GL") == 0)
{
UseVulkan = false;