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:
Jake Turner
2021-03-25 07:04:37 +00:00
committed by Baldur Karlsson
parent 1700249a79
commit 30ca842e98
+1 -1
View File
@@ -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");