mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Fix 64-bit define detection in Vulkan 1.0.25 (#29)
This commit is contained in:
parent
6285f71d58
commit
ac9510cb7d
@ -1327,7 +1327,7 @@ void readTypeDefine( tinyxml2::XMLElement * element, VkData & vkData )
|
||||
else if (element->Attribute("name") && strcmp(element->Attribute("name"), "VK_DEFINE_NON_DISPATCHABLE_HANDLE") == 0)
|
||||
{
|
||||
std::string text = element->LastChild()->ToText()->Value();
|
||||
size_t start = text.find('#');
|
||||
size_t start = text.find("#if defined(__LP64__)");
|
||||
size_t end = text.find_first_of("\r\n", start + 1);
|
||||
vkData.typesafeCheck = text.substr(start, end - start);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user