@@ -61,13 +61,13 @@ func run() error { ml.SetDevice(device) ml.SetPixelFormat(mtl.PixelFormatBGRA8UNorm) ml.SetDrawableSize(window.GetFramebufferSize()) ml.SetMaximumDrawableCount(3) ml.SetDisplaySyncEnabled(true) cocoaWindow := ns.NewWindow(unsafe.Pointer(window.GetCocoaWindow())) cocoaWindow.ContentView().SetLayer(ml) cocoaWindow.ContentView().SetWantsLayer(true) cv := ns.NewWindow(unsafe.Pointer(window.GetCocoaWindow())).ContentView() cv.SetLayer(ml) cv.SetWantsLayer(true) // Set callbacks. window.SetFramebufferSizeCallback(func(_ *glfw.Window, width, height int) { ml.SetDrawableSize(width, height) })