shader_checker: Eliminate redefinition of macro
authorJon Ashburn <jon@lunarg.com>
Mon, 18 May 2015 15:08:41 +0000 (09:08 -0600)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Thu, 18 Jun 2015 01:47:02 +0000 (19:47 -0600)
layers/shader_checker.cpp

index b1b2cf8e5be85ba1ff8d2e9623a86a850cbd5818..fd3a815c1af4bac52a923c24391f3caf7ae1c001 100644 (file)
@@ -1021,8 +1021,7 @@ VK_LAYER_EXPORT void * VKAPI vkGetProcAddr(VkPhysicalDevice gpu, const char* pNa
     ADD_HOOK(vkCreateShader);
     ADD_HOOK(vkCreateGraphicsPipeline);
     ADD_HOOK(vkCreateGraphicsPipelineDerivative);
-    ADD_HOOK(vkDbgRegisterMsgCallback);
-    ADD_HOOK(vkDbgUnregisterMsgCallback);
+#undef ADD_HOOK
 
     VkBaseLayerObject* gpuw = (VkBaseLayerObject *) gpu;
     if (gpuw->pGPA == NULL)
@@ -1047,6 +1046,7 @@ VK_LAYER_EXPORT void * VKAPI vkGetInstanceProcAddr(VkInstance inst, const char*
     ADD_HOOK(vkGetInstanceProcAddr);
     ADD_HOOK(vkEnumerateLayers);
     ADD_HOOK(vkGetGlobalExtensionInfo);
+#undef ADD_HOOK
 
     VkBaseLayerObject* instw = (VkBaseLayerObject *) inst;
     if (instw->pGPA == NULL)