Fix tvos metal driver (#14943)

The drawableSizeWillChange notification was never coming, so the
viewport size was never getting set properly.
This commit is contained in:
warmenhoven 2023-02-03 01:32:44 -05:00 committed by GitHub
parent ac2cceb905
commit 338430d1ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,6 +174,10 @@
[apple_platform setVideoMode:mode];
#ifdef HAVE_COCOATOUCH
[self mtkView:view drawableSizeWillChange:CGSizeMake(mode.width, mode.height)];
#endif
*input = NULL;
*inputData = NULL;
/* graphics display driver */