diff options
| author | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-02-25 16:56:00 -0700 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-02-25 17:15:47 -0700 |
| commit | 75f01f586920501e2c2353e50577eee97bd6d92f (patch) | |
| tree | f41ea37aaad73caa40efe4ac193e2510ba5303f4 /layers | |
| parent | c0f35182273a51cbca1274648155fda2c5214ce2 (diff) | |
| download | usermoji-75f01f586920501e2c2353e50577eee97bd6d92f.tar.xz | |
layers: flush logged output so it's visible immediately
Diffstat (limited to 'layers')
| -rw-r--r-- | layers/layers_msg.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layers/layers_msg.h b/layers/layers_msg.h index 55e70f8b..933012c1 100644 --- a/layers/layers_msg.h +++ b/layers/layers_msg.h @@ -43,8 +43,10 @@ static void layerCbMsg(XGL_DBG_MSG_TYPE msgType, switch (msgType) { case XGL_DBG_MSG_ERROR: if (g_reportingLevel <= XGL_DBG_LAYER_LEVEL_ERROR) { - if (g_debugAction & XGL_DBG_LAYER_ACTION_LOG_MSG) + if (g_debugAction & XGL_DBG_LAYER_ACTION_LOG_MSG) { fprintf(g_logFile, "{%s}ERROR : %s\n", pLayerPrefix, pMsg); + fflush(g_logFile); + } if (g_debugAction & XGL_DBG_LAYER_ACTION_CALLBACK) while (pTrav) { pTrav->pfnMsgCallback(msgType, validationLevel, srcObject, location, msgCode, pMsg, pTrav->pUserData); |
