-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code that uses unsafe.Pointer to convert an integer-typed value held in memory into a pointer is illegal and must be rewritten #63
Comments
For the record, the offending code is part of the conversions template. The trouble is that when glow generates Go bindings for functions like glVertexAttribPointer it converts the |
If I try to build my project using -race, then I seem to be seeing this issue. Or am I mistaken?
Results in:
|
With the presence of overloads and the first overlad functions available, is there still a need to consider Or should this be kept for pre-1.14 compatibility, and a complete removal would happen in a properly tagged release? |
I think the deprecation route makes the most sense to me. |
hello, I'm a newbie to OpenGL, and I'm using VertexAttribPointer in my program, which has some problem according to this issue. Now I wonder what I should use as the substitute of VertexAttribPointer. |
This issue made because go-gl/gl#18 is the wrong repository for it.
This is the exact same issue that had to be resolved back in the old bindings go-gl/glfw#78, the most straightforward fix would be to work with
uintptr
instead ofunsafe.Pointer
. Using a new type instead of uintptr is also viable, but in no circumstance should it stay in anunsafe.Pointer
The text was updated successfully, but these errors were encountered: