graphicsdriver/opengl/gl: Bug fix: misuse of unsafe.Pointer

This commit is contained in:
Hajime Hoshi 2020-05-17 19:42:23 +09:00
parent 8ab12827c0
commit 84e2c6f994
2 changed files with 0 additions and 4 deletions

View File

@ -35,8 +35,6 @@ func Ptr(data interface{}) unsafe.Pointer {
addr = unsafe.Pointer(v) addr = unsafe.Pointer(v)
case *float32: case *float32:
addr = unsafe.Pointer(v) addr = unsafe.Pointer(v)
case uintptr:
addr = unsafe.Pointer(v)
case []uint8: case []uint8:
addr = unsafe.Pointer(&v[0]) addr = unsafe.Pointer(&v[0])
case []uint16: case []uint16:

View File

@ -30,8 +30,6 @@ func Ptr(data interface{}) unsafe.Pointer {
addr = unsafe.Pointer(v) addr = unsafe.Pointer(v)
case *float32: case *float32:
addr = unsafe.Pointer(v) addr = unsafe.Pointer(v)
case uintptr:
addr = unsafe.Pointer(v)
case []uint8: case []uint8:
addr = unsafe.Pointer(&v[0]) addr = unsafe.Pointer(&v[0])
case []uint16: case []uint16: