mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-05 14:21:10 +00:00
Fix unsigned/signed comparison with new VK_MAKE_VERSION
This commit is contained in:
@@ -44,7 +44,7 @@ struct InstanceDeviceInfo
|
||||
|
||||
bool brokenGetDeviceProcAddr = false;
|
||||
|
||||
int vulkanVersion = VK_API_VERSION_1_0;
|
||||
uint32_t vulkanVersion = VK_API_VERSION_1_0;
|
||||
|
||||
DeclExts();
|
||||
};
|
||||
|
||||
@@ -386,11 +386,10 @@ ReplayStatus WrappedVulkan::Initialise(VkInitParams ¶ms, uint64_t sectionVer
|
||||
VkResult ret = GetInstanceDispatchTable(NULL)->CreateInstance(&instinfo, NULL, &m_Instance);
|
||||
|
||||
#undef CheckExt
|
||||
#define CheckExt(name, ver) \
|
||||
if(!strcmp(instinfo.ppEnabledExtensionNames[i], "VK_" #name) || \
|
||||
(int)renderdocAppInfo.apiVersion >= ver) \
|
||||
{ \
|
||||
m_EnabledExtensions.ext_##name = true; \
|
||||
#define CheckExt(name, ver) \
|
||||
if(!strcmp(instinfo.ppEnabledExtensionNames[i], "VK_" #name) || renderdocAppInfo.apiVersion >= ver) \
|
||||
{ \
|
||||
m_EnabledExtensions.ext_##name = true; \
|
||||
}
|
||||
|
||||
for(uint32_t i = 0; i < instinfo.enabledExtensionCount; i++)
|
||||
@@ -3038,10 +3037,10 @@ bool WrappedVulkan::Serialise_vkCreateDevice(SerialiserType &ser, VkPhysicalDevi
|
||||
CheckDeviceExts();
|
||||
|
||||
#undef CheckExt
|
||||
#define CheckExt(name, ver) \
|
||||
if(!strcmp(createInfo.ppEnabledExtensionNames[i], "VK_" #name) || (int)physProps.apiVersion >= ver) \
|
||||
{ \
|
||||
m_EnabledExtensions.ext_##name = true; \
|
||||
#define CheckExt(name, ver) \
|
||||
if(!strcmp(createInfo.ppEnabledExtensionNames[i], "VK_" #name) || physProps.apiVersion >= ver) \
|
||||
{ \
|
||||
m_EnabledExtensions.ext_##name = true; \
|
||||
}
|
||||
|
||||
for(uint32_t i = 0; i < createInfo.enabledExtensionCount; i++)
|
||||
|
||||
Reference in New Issue
Block a user