forked from MSG/msg-desktop
FIX: Silences error due to metallib on resizing of window
This commit is contained in:
parent
c946f6577f
commit
d3b066218f
2 changed files with 16 additions and 1 deletions
|
@ -121,7 +121,11 @@ struct ContentView: View {
|
|||
}
|
||||
.padding()
|
||||
.frame(maxHeight: .infinity)
|
||||
// Removed fixed frame here to allow dynamic window sizing
|
||||
.onAppear {
|
||||
// Silences error due to metallib on resizing of window
|
||||
let device = MTLCreateSystemDefaultDevice()
|
||||
_ = device?.makeDefaultLibrary()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
11
MSG Desktop/MSG_Desktop.metal
Normal file
11
MSG Desktop/MSG_Desktop.metal
Normal file
|
@ -0,0 +1,11 @@
|
|||
//
|
||||
// MGS_Desktop.metal
|
||||
// MSG Desktop
|
||||
//
|
||||
// Created by Etienne Roesch on 31/03/2025.
|
||||
//
|
||||
|
||||
#include <metal_stdlib>
|
||||
using namespace metal;
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue