layers: Some debug_marker fixes for draw state
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index 4cccdd1..590f4bb 100644
--- a/layers/draw_state.cpp
+++ b/layers/draw_state.cpp
@@ -2645,8 +2645,9 @@
}
if (strcmp(pCreateInfo->ppEnabledExtensionNames[i], DEBUG_MARKER_EXTENSION_NAME) == 0) {
/* Found a matching extension name, mark it enabled and init dispatch table*/
- initDebugMarkerTable(device);
dev_data->device_extensions.debug_marker_enabled = true;
+ initDebugMarkerTable(device);
+
}
}
}