mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-02 13:26:24 +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,6 +69,7 @@ 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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue