mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
graphicsdriver/opengl/gl: Bug fix: misuse of unsafe.Pointer
This commit is contained in:
parent
8ab12827c0
commit
84e2c6f994
@ -35,8 +35,6 @@ func Ptr(data interface{}) unsafe.Pointer {
|
||||
addr = unsafe.Pointer(v)
|
||||
case *float32:
|
||||
addr = unsafe.Pointer(v)
|
||||
case uintptr:
|
||||
addr = unsafe.Pointer(v)
|
||||
case []uint8:
|
||||
addr = unsafe.Pointer(&v[0])
|
||||
case []uint16:
|
||||
|
@ -30,8 +30,6 @@ func Ptr(data interface{}) unsafe.Pointer {
|
||||
addr = unsafe.Pointer(v)
|
||||
case *float32:
|
||||
addr = unsafe.Pointer(v)
|
||||
case uintptr:
|
||||
addr = unsafe.Pointer(v)
|
||||
case []uint8:
|
||||
addr = unsafe.Pointer(&v[0])
|
||||
case []uint16:
|
||||
|
Loading…
Reference in New Issue
Block a user