layers: Use the instance chain for entrypoints with instance
Also add to instance dispatch table CreateInstance and GetGlobalExtensionInfo
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index cedf652..09bb3ee 100755
--- a/layers/draw_state.cpp
+++ b/layers/draw_state.cpp
@@ -2638,7 +2638,7 @@
if (g_actionIsDefault) {
g_debugAction = VK_DBG_LAYER_ACTION_CALLBACK;
}
- VkResult result = nextTable.DbgRegisterMsgCallback(instance, pfnMsgCallback, pUserData);
+ VkResult result = nextInstanceTable.DbgRegisterMsgCallback(instance, pfnMsgCallback, pUserData);
return result;
}
@@ -2664,7 +2664,7 @@
else
g_debugAction = (VK_LAYER_DBG_ACTION)(g_debugAction & ~((uint32_t)VK_DBG_LAYER_ACTION_CALLBACK));
}
- VkResult result = nextTable.DbgUnregisterMsgCallback(instance, pfnMsgCallback);
+ VkResult result = nextInstanceTable.DbgUnregisterMsgCallback(instance, pfnMsgCallback);
return result;
}