aboutsummaryrefslogtreecommitdiff
path: root/layers/threading.cpp
diff options
context:
space:
mode:
authorHugo Landau <hlandau@devever.net>2016-02-16 15:44:03 +0000
committerDustin Graves <dustin@lunarg.com>2016-02-24 11:05:50 -0700
commitfca8964d67965d8c89356085f5ce0fb31da19abc (patch)
treec73d17d20974822741a978bf1e67bd9c8a35aa39 /layers/threading.cpp
parent5f11b8557d64f81e41837b7668a3192e51eaf21b (diff)
downloadusermoji-fca8964d67965d8c89356085f5ce0fb31da19abc.tar.xz
demos: Fix vulkaninfo on win32 to use existing console
The vulkaninfo utility is compiled as /SUBSYSTEM:APPLICATION but attempts to allocate its own console and print to it. Not only does this appear to be unreliable (sometimes no output is printed), it is unnecessary if the utility is compiled as /SUBSYSTEM:CONSOLE. This removes unnecessary console manipulation code. By using /SUBSYSTEM:CONSOLE, the ordinary main() entrypoint function can be used. The console is still enlarged if it was opened exclusively for the process by detecting whether it was so opened. Likewise, the process still sleeps forever if the console is exclusive to the process. The process behaves like a normal command line process when executed from the command line. Fixes lunarg issue 350.
Diffstat (limited to 'layers/threading.cpp')
0 files changed, 0 insertions, 0 deletions