Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix static error when converting uintptr in gl.Ptr (go-gl#111)
reflect will always panic on this conversion. As uintptr is an integer type, it is not interpreted as a pointer in itself. Also, this call is redundant per se as it returns a uintptr. Just converting data to a uintptr and passing to unsafe.Pointer should get the expected result.
- Loading branch information