Fix 64-bit define detection in Vulkan 1.0.25 (#29)

This commit is contained in:
Markus Tavenrath 2016-09-05 10:26:43 +02:00 committed by Andreas Süßenbach
parent 6285f71d58
commit ac9510cb7d

View File

@ -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);
}