macOS: fix initial Metal drawable size in certain multi-display setups

main
Sasha Szpakowski 2023-02-01 18:56:33 -04:00 committed by Sam Lantinga
parent 98ae54ccc0
commit baca26d727
1 changed files with 3 additions and 0 deletions

View File

@ -150,6 +150,9 @@ Cocoa_Metal_CreateView(_THIS, SDL_Window *window)
[view addSubview:newview];
/* Make sure the drawable size is up to date after attaching the view. */
[newview updateDrawableSize];
metalview = (SDL_MetalView)CFBridgingRetain(newview);
return metalview;