summaryrefslogtreecommitdiffstats
path: root/Common/NativeApp/src
diff options
context:
space:
mode:
authorEgor <egor.yusov@gmail.com>2019-05-05 04:30:32 +0000
committerEgor <egor.yusov@gmail.com>2019-05-05 04:30:32 +0000
commita244a18243f6f8f454b5d2276fddf110b47ba585 (patch)
tree6943142a415119e9b2f9e14fd6c96a539c226751 /Common/NativeApp/src
parentUpdated submodules (fixed MacOS/Linux issues) (diff)
downloadDiligentEngine-a244a18243f6f8f454b5d2276fddf110b47ba585.tar.gz
DiligentEngine-a244a18243f6f8f454b5d2276fddf110b47ba585.zip
Fixed Linux build issues; added launch instructions for GLTFViewer on Linux
Diffstat (limited to 'Common/NativeApp/src')
-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;