diff options
| author | Egor <egor.yusov@gmail.com> | 2019-05-05 04:30:32 +0000 |
|---|---|---|
| committer | Egor <egor.yusov@gmail.com> | 2019-05-05 04:30:32 +0000 |
| commit | a244a18243f6f8f454b5d2276fddf110b47ba585 (patch) | |
| tree | 6943142a415119e9b2f9e14fd6c96a539c226751 /Common/NativeApp/src | |
| parent | Updated submodules (fixed MacOS/Linux issues) (diff) | |
| download | DiligentEngine-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.cpp | 3 |
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;
|
