macOS: fix initial Metal drawable size in certain multi-display setups
This commit is contained in:
parent
98ae54ccc0
commit
baca26d727
|
@ -150,6 +150,9 @@ Cocoa_Metal_CreateView(_THIS, SDL_Window *window)
|
||||||
|
|
||||||
[view addSubview:newview];
|
[view addSubview:newview];
|
||||||
|
|
||||||
|
/* Make sure the drawable size is up to date after attaching the view. */
|
||||||
|
[newview updateDrawableSize];
|
||||||
|
|
||||||
metalview = (SDL_MetalView)CFBridgingRetain(newview);
|
metalview = (SDL_MetalView)CFBridgingRetain(newview);
|
||||||
|
|
||||||
return metalview;
|
return metalview;
|
||||||
|
|
Loading…
Reference in a new issue