From a244a18243f6f8f454b5d2276fddf110b47ba585 Mon Sep 17 00:00:00 2001 From: Egor Date: Sat, 4 May 2019 21:30:32 -0700 Subject: Fixed Linux build issues; added launch instructions for GLTFViewer on Linux --- Common/NativeApp/src/Linux/LinuxMain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Common/NativeApp/src') 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; -- cgit v1.2.3