mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
graphicsdriver/opengl: Use NewLazySystemDLL instead of NewLazyDLL (#766)
This commit is contained in:
parent
f2dcc8ccdb
commit
123be16699
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user