projects
/
platform
/
upstream
/
Vulkan-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c27ec8e
)
layers: Set default debug output to stdout
author
Courtney Goeltzenleuchter
<courtney@LunarG.com>
Sun, 22 Feb 2015 23:15:32 +0000
(16:15 -0700)
committer
Chia-I Wu
<olv@lunarg.com>
Thu, 16 Apr 2015 09:33:29 +0000
(17:33 +0800)
layers/layers_msg.h
patch
|
blob
|
history
diff --git
a/layers/layers_msg.h
b/layers/layers_msg.h
index 88d9fba7b5f8040bdbd3f29f6274954679311b80..3f57250d6316ff5060300900e98a70f244865960 100644
(file)
--- a/
layers/layers_msg.h
+++ b/
layers/layers_msg.h
@@
-40,6
+40,10
@@
static void layerCbMsg(XGL_DBG_MSG_TYPE msgType,
const char* pLayerPrefix,
const char* pMsg)
{
+ if (g_logFile == NULL) {
+ g_logFile = stdout;
+ }
+
if (g_debugAction & (XGL_DBG_LAYER_ACTION_LOG_MSG | XGL_DBG_LAYER_ACTION_CALLBACK)) {
XGL_LAYER_DBG_FUNCTION_NODE *pTrav = g_pDbgFunctionHead;
switch (msgType) {