vulkaninfo: fix infinite sleep for non text outputs
authorCharles Giessen <charles@lunarg.com>
Wed, 30 Oct 2019 22:44:04 +0000 (16:44 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Wed, 30 Oct 2019 23:45:09 +0000 (17:45 -0600)
commit0c2f51dc7a971b94c23db3022c16e235da1f214e
treeebd3ff9d473a456f31b6b1938103abfbaec1e593
parentb13baa7080a19aa797f4b3b1bf905484d9ee174d
vulkaninfo: fix infinite sleep for non text outputs

Previous versions, in win32 would sleep infinitely if a crash occured. This commit will first check if its a text output first before sleeping, to preserve the error if it is in a console but return immediate if it isn't.

Change-Id: Ib1b43001e970c8c3114e666d96b24dc3c557a579
vulkaninfo/vulkaninfo.cpp
vulkaninfo/vulkaninfo.h