mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 13:30:44 +00:00
On Apple use the view object as the window handle
The view is constant per window, the layer can change. The layer is constant for Vulkan windows The layer changes for GL windows
This commit is contained in:
committed by
Baldur Karlsson
parent
1700249a79
commit
30ca842e98
@@ -77,7 +77,7 @@ static uint64_t GetHandle(WindowingData window)
|
||||
#elif ENABLED(RDOC_APPLE)
|
||||
|
||||
RDCASSERT(window.system == WindowingSystem::MacOS);
|
||||
return (uint64_t)window.macOS.layer; // CALayer *
|
||||
return (uint64_t)window.macOS.view; // NSView *
|
||||
|
||||
#else
|
||||
RDCFATAL("No windowing data defined for this platform! Must be implemented for replay outputs");
|
||||
|
||||
Reference in New Issue
Block a user