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/mem_tracker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layers/mem_tracker.cpp') diff --git a/layers/mem_tracker.cpp b/layers/mem_tracker.cpp index 20a69c31..ced65d42 100644 --- a/layers/mem_tracker.cpp +++ b/layers/mem_tracker.cpp @@ -2030,7 +2030,7 @@ VK_LAYER_EXPORT VkResult VKAPI vkDbgRegisterMsgCallback( 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; } @@ -2059,7 +2059,7 @@ VK_LAYER_EXPORT VkResult VKAPI vkDbgUnregisterMsgCallback( 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