mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-05 21:44:24 +00:00
Limit device core vulkan version to declared instance version
* This prevents us from returning function pointers that should be NULL for core functionality (or promoted extension functionality) which an application may see and then try to call. The spec requires us to return NULL for these cases (except for non-maint5 future core versions, but we can legally return NULL there and that's the correct thing to do as the maint5 feature bit is stupid).
This commit is contained in:
1 file changed
+2
-1
@@ -4159,7 +4159,8 @@ VkResult WrappedVulkan::vkCreateDevice(VkPhysicalDevice physicalDevice,
|
||||
VkPhysicalDeviceProperties physProps;
|
||||
ObjDisp(physicalDevice)->GetPhysicalDeviceProperties(Unwrap(physicalDevice), &physProps);
|
||||
|
||||
record->instDevInfo->vulkanVersion = physProps.apiVersion;
|
||||
record->instDevInfo->vulkanVersion =
|
||||
RDCMIN(physProps.apiVersion, GetRecord(m_Instance)->instDevInfo->vulkanVersion);
|
||||
|
||||
#undef CheckExt
|
||||
#define CheckExt(name, ver) \
|
||||
|
||||
Reference in new issue
Block a user