mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Fix missing surface registers for headless/direct surfaces
This commit is contained in:
@@ -1126,10 +1126,7 @@ VkResult WrappedVulkan::vkCreateDisplayPlaneSurfaceKHR(VkInstance instance,
|
||||
fakeWindowHandle += pCreateInfo->planeIndex;
|
||||
fakeWindowHandle += pCreateInfo->planeStackIndex << 4;
|
||||
|
||||
// since there's no point in allocating a full resource record and storing the window
|
||||
// handle under there somewhere, we just cast. We won't use the resource record for anything
|
||||
|
||||
wrapped->record = (VkResourceRecord *)fakeWindowHandle;
|
||||
wrapped->record = RegisterSurface(WindowingSystem::Headless, (void *)fakeWindowHandle);
|
||||
}
|
||||
|
||||
return ret;
|
||||
@@ -1291,10 +1288,7 @@ VkResult WrappedVulkan::vkCreateHeadlessSurfaceEXT(VkInstance instance,
|
||||
// in use.
|
||||
uintptr_t fakeWindowHandle = (uintptr_t)wrapped->real.handle;
|
||||
|
||||
// since there's no point in allocating a full resource record and storing the window
|
||||
// handle under there somewhere, we just cast. We won't use the resource record for anything
|
||||
|
||||
wrapped->record = (VkResourceRecord *)fakeWindowHandle;
|
||||
wrapped->record = RegisterSurface(WindowingSystem::Headless, (void *)fakeWindowHandle);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user