layers: Set default debug output to stdout
authorCourtney Goeltzenleuchter <courtney@LunarG.com>
Sun, 22 Feb 2015 23:15:32 +0000 (16:15 -0700)
committerChia-I Wu <olv@lunarg.com>
Thu, 16 Apr 2015 09:33:29 +0000 (17:33 +0800)
layers/layers_msg.h

index 88d9fba7b5f8040bdbd3f29f6274954679311b80..3f57250d6316ff5060300900e98a70f244865960 100644 (file)
@@ -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) {