We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8867796 commit fb61736Copy full SHA for fb61736
Engine/Core/Rendering/Windowing/Impls/SDL2RenderWindow.cs
@@ -27,6 +27,8 @@ private class GamepadState
27
private bool windowFocused = true;
28
private bool windowMaximized = false;
29
30
+ private nint metalView = nint.Zero;
31
+
32
public bool ContextLost { get; set; } = false;
33
34
public bool IsFocused => windowFocused;
@@ -612,7 +614,12 @@ public nint WindowPointer(AppPlatform platform)
612
614
613
615
case AppPlatform.MacOSX:
616
- return StapleSupport.MacWindow(info.info.cocoa.window);
617
+ if(metalView == nint.Zero)
618
+ {
619
+ metalView = SDL.SDL_Metal_CreateView(window);
620
+ }
621
622
+ return SDL.SDL_Metal_GetLayer(metalView);
623
624
default:
625
0 commit comments