dmitri.shuralyov.com/gpu/mtl/example/movingtriangle

remove unsafe.Unsafe conversion

It has become unnecessary after the switch from GLFW v3.2 to v3.3,
because Window.GetCocoaWindow now returns unsafe.Unsafe directly.
dmitshur committed 4 years ago commit 9364696d8c28dc804dcd7e099f0b7c6cb58ac824
Showing partial commit. Full Commit
Collapse all
example/movingtriangle/main.go
@@ -61,11 +61,11 @@ func run() error {
	ml.SetDevice(device)
	ml.SetPixelFormat(mtl.PixelFormatBGRA8UNorm)
	ml.SetDrawableSize(window.GetFramebufferSize())
	ml.SetMaximumDrawableCount(3)
	ml.SetDisplaySyncEnabled(true)
	cv := ns.NewWindow(unsafe.Pointer(window.GetCocoaWindow())).ContentView()
	cv := ns.NewWindow(window.GetCocoaWindow()).ContentView()
	cv.SetLayer(ml)
	cv.SetWantsLayer(true)

	// Set callbacks.
	window.SetFramebufferSizeCallback(func(_ *glfw.Window, width, height int) {