Skip to content

Commit

Permalink
Merge pull request #81 from go-gl/revert-79-unsafe-pointer
Browse files Browse the repository at this point in the history
Revert "Represent GLsync as uintptr, not unsafe.Pointer".
  • Loading branch information
errcw authored May 11, 2017
2 parents 7ec9805 + 72ad21e commit 66a2ff1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions type.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,7 @@ func (t Type) GoType() string {
// an integer type.
return t.pointers() + "uintptr"
case "GLsync":
// GLsync is an opaque pointer type and may not contain actual
// pointers but arbitrary numbers. Use uintptr instead of
// unsafe.Pointer, as the latter requires valid pointers.
return t.pointers() + "uintptr"
return t.pointers() + "unsafe.Pointer"
case "GLDEBUGPROC", "GLDEBUGPROCARB", "GLDEBUGPROCKHR":
// Special case mapping to the type defined in debug.tmpl
return "DebugProc"
Expand Down

0 comments on commit 66a2ff1

Please sign in to comment.