From fc1b02ddb65594ad2de9c6077f3462385cb7f6d8 Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Tue, 12 May 2015 17:23:55 -0600 Subject: layers: Use the instance chain for entrypoints with instance Also add to instance dispatch table CreateInstance and GetGlobalExtensionInfo --- layers/draw_state.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layers/draw_state.cpp') diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index cedf652b..09bb3ee2 100755 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -2638,7 +2638,7 @@ VK_LAYER_EXPORT VkResult VKAPI vkDbgRegisterMsgCallback(VkInstance instance, VK_ 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 @@ VK_LAYER_EXPORT VkResult VKAPI vkDbgUnregisterMsgCallback(VkInstance instance, V 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; } -- cgit v1.2.3