{
const char *strOpt;
// initialize DrawState options
- getLayerOptionEnum("DrawStateReportLevel", &g_reportingLevel);
- g_actionIsDefault = getLayerOptionEnum("DrawStateDebugAction", &g_debugAction);
+ getLayerOptionEnum("DrawStateReportLevel", (uint32_t *) &g_reportingLevel);
+ g_actionIsDefault = getLayerOptionEnum("DrawStateDebugAction", (uint32_t *) &g_debugAction);
if (g_debugAction & XGL_DBG_LAYER_ACTION_LOG_MSG)
{
{
const char *strOpt;
// initialize MemTracker options
- getLayerOptionEnum("MemTrackerReportLevel", &g_reportingLevel);
- g_actionIsDefault = getLayerOptionEnum("MemTrackerDebugAction", &g_debugAction);
+ getLayerOptionEnum("MemTrackerReportLevel", (uint32_t *) &g_reportingLevel);
+ g_actionIsDefault = getLayerOptionEnum("MemTrackerDebugAction", (uint32_t *) &g_debugAction);
if (g_debugAction & XGL_DBG_LAYER_ACTION_LOG_MSG)
{
if init_opts:
func_body.append(' const char *strOpt;')
func_body.append(' // initialize %s options' % name)
- func_body.append(' getLayerOptionEnum("%sReportLevel", &g_reportingLevel);' % name)
- func_body.append(' g_actionIsDefault = getLayerOptionEnum("%sDebugAction", &g_debugAction);' % name)
+ func_body.append(' getLayerOptionEnum("%sReportLevel", (uint32_t *) &g_reportingLevel);' % name)
+ func_body.append(' g_actionIsDefault = getLayerOptionEnum("%sDebugAction", (uint32_t *) &g_debugAction);' % name)
func_body.append('')
func_body.append(' if (g_debugAction & XGL_DBG_LAYER_ACTION_LOG_MSG)')
func_body.append(' {')