internal/graphicsdriver/opengl/gl: bug fix: compile error

This commit is contained in:
Hajime Hoshi 2022-11-15 02:41:59 +09:00
parent 056042ca92
commit 4c389c1752

View File

@ -106,9 +106,7 @@ func getProcAddressGL(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)
defer C.free(unsafe.Pointer(cname))
return C.getProcAddressGLES(cname)