mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-02 05:16:19 +12:00
iOS: Default-initialize mtkView drawable size
This commit is contained in:
parent
adcd03d31e
commit
cae79e43ca
1 changed files with 2 additions and 1 deletions
|
@ -69,7 +69,8 @@ struct ContentView: UIViewRepresentable {
|
||||||
}
|
}
|
||||||
|
|
||||||
mtkView.framebufferOnly = false
|
mtkView.framebufferOnly = false
|
||||||
|
mtkView.drawableSize = mtkView.frame.size
|
||||||
|
|
||||||
mtkView.onResize = { newDrawableSize in
|
mtkView.onResize = { newDrawableSize in
|
||||||
let newWidth = UInt32(newDrawableSize.width)
|
let newWidth = UInt32(newDrawableSize.width)
|
||||||
let newHeight = UInt32(newDrawableSize.height)
|
let newHeight = UInt32(newDrawableSize.height)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue