layers: Default MemTracker and DrawState to verbose stdout mode when no settings file present.
diff --git a/layers/draw_state.c b/layers/draw_state.c
index d8527bb..b4f303e 100644
--- a/layers/draw_state.c
+++ b/layers/draw_state.c
@@ -43,7 +43,7 @@
// Ptr to LL of dbg functions
static XGL_LAYER_DBG_FUNCTION_NODE *g_pDbgFunctionHead = NULL;
-static XGL_LAYER_DBG_REPORT_LEVEL g_reportingLevel = XGL_DBG_LAYER_LEVEL_ERROR;
+static XGL_LAYER_DBG_REPORT_LEVEL g_reportingLevel = XGL_DBG_LAYER_LEVEL_INFO;
static XGL_LAYER_DBG_ACTION g_debugAction = XGL_DBG_LAYER_ACTION_LOG_MSG;
static FILE *g_logFile = NULL;
@@ -922,20 +922,21 @@
static void initDrawState()
{
const char *strOpt;
- // initialize MemTracker options
+ // initialize DrawState options
strOpt = getLayerOption("DrawStateReportLevel");
if (strOpt != NULL)
g_reportingLevel = atoi(strOpt);
+
strOpt = getLayerOption("DrawStateDebugAction");
if (strOpt != NULL)
- g_debugAction = atoi(strOpt);
+ g_debugAction = atoi(strOpt);
+
if (g_debugAction & XGL_DBG_LAYER_ACTION_LOG_MSG)
{
strOpt = getLayerOption("DrawStateLogFilename");
if (strOpt)
{
g_logFile = fopen(strOpt, "w");
-
}
if (g_logFile == NULL)
g_logFile = stdout;