mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/graphicsdriver/opengl/gl: bug fix: compile error
This commit is contained in:
parent
056042ca92
commit
4c389c1752
@ -106,9 +106,7 @@ func getProcAddressGL(name string) unsafe.Pointer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getProcAddressGLES(name string) unsafe.Pointer {
|
func getProcAddressGLES(name string) unsafe.Pointer {
|
||||||
if strings.HasSuffix(name, ext) {
|
|
||||||
name = strings.TrimSuffix(name, "EXT")
|
name = strings.TrimSuffix(name, "EXT")
|
||||||
}
|
|
||||||
cname := C.CString(name)
|
cname := C.CString(name)
|
||||||
defer C.free(unsafe.Pointer(cname))
|
defer C.free(unsafe.Pointer(cname))
|
||||||
return C.getProcAddressGLES(cname)
|
return C.getProcAddressGLES(cname)
|
||||||
|
Loading…
Reference in New Issue
Block a user