diff options
| author | Charles Giessen <charles@lunarg.com> | 2019-10-07 16:53:36 -0600 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2019-10-08 13:45:40 -0600 |
| commit | fe71c2d7086f3ba6cc3064dafbf191cee037d3a0 (patch) | |
| tree | 419c472460db5f599686fe6baf2be5ae54670a0a | |
| parent | 03b929710428235157ed2261d7c232e16c371b81 (diff) | |
| download | usermoji-fe71c2d7086f3ba6cc3064dafbf191cee037d3a0.tar.xz | |
vulkaninfo: Fix closing immediately on windows
On windows the console window will immediately close after running
vulkaninfo, this fixes it.
Change-Id: Ic5a86ffb89508d874d9609ed1b4d9222a31798c4
| -rw-r--r-- | vulkaninfo/vulkaninfo.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vulkaninfo/vulkaninfo.cpp b/vulkaninfo/vulkaninfo.cpp index 32bda180..1cd35c06 100644 --- a/vulkaninfo/vulkaninfo.cpp +++ b/vulkaninfo/vulkaninfo.cpp @@ -750,5 +750,11 @@ int main(int argc, char **argv) { } #endif +#ifdef _WIN32 + if (ConsoleIsExclusive()) { + Sleep(INFINITE); + } +#endif + return 0; } |
