Fix issue not detecting vulkan extensions, due to macro expansion

This commit is contained in:
baldurk
2016-12-09 15:40:04 +00:00
parent 30c1321356
commit eadd051f98
@@ -336,7 +336,7 @@ VkResult WrappedVulkan::vkCreateInstance(const VkInstanceCreateInfo *pCreateInfo
#undef CheckExt
#define CheckExt(name) \
if(!strcmp(modifiedCreateInfo.ppEnabledExtensionNames[i], STRINGIZE(name))) \
if(!strcmp(modifiedCreateInfo.ppEnabledExtensionNames[i], #name)) \
{ \
record->instDevInfo->ext_##name = true; \
}
@@ -1269,7 +1269,7 @@ VkResult WrappedVulkan::vkCreateDevice(VkPhysicalDevice physicalDevice,
#undef CheckExt
#define CheckExt(name) \
if(!strcmp(createInfo.ppEnabledExtensionNames[i], STRINGIZE(name))) \
if(!strcmp(createInfo.ppEnabledExtensionNames[i], #name)) \
{ \
record->instDevInfo->ext_##name = true; \
}