diff --git a/internal/graphicsdriver/opengl/gl/procaddr_windows.go b/internal/graphicsdriver/opengl/gl/procaddr_windows.go index dc2093892..cd86743f6 100644 --- a/internal/graphicsdriver/opengl/gl/procaddr_windows.go +++ b/internal/graphicsdriver/opengl/gl/procaddr_windows.go @@ -3,17 +3,17 @@ package gl import ( - "syscall" + "golang.org/x/sys/windows" "unsafe" ) var ( - opengl32 = syscall.NewLazyDLL("opengl32") + opengl32 = windows.NewLazySystemDLL("opengl32") wglGetProcAddress = opengl32.NewProc("wglGetProcAddress") ) func getProcAddress(namea string) unsafe.Pointer { - cname, err := syscall.BytePtrFromString(namea) + cname, err := windows.BytePtrFromString(namea) if err != nil { panic(err) }