-
Notifications
You must be signed in to change notification settings - Fork 75
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
race detector checkptr fails on PtrOffset #124
Comments
Yup, this new checker cascades quite a lot. See also: https://golang.org/doc/go1.14#compiler edit: I believe #80 and the discussion there will become relevant as well now. |
The difference from [go-gl](https://github.com/go-gl/gl) are: - WithOffset variants for some functions, so you don't have to pass pointers insteas of offsets (closes go-gl/gl issues [80](go-gl#80) and [124](go-gl#124)). Currently only functions `glDrawElements`, `glVertexAttribPointer`, `glGetVertexAttribPointerv` provide variants: let me know if you need more. - No need to use cgo under Windows (much faster build times).
In the meantime it gets fixed, you can use my fork. |
@neclepsio could you submit a PR to fix this issue in the main package? |
@rcoreilly I did nothing but running what already done by @dertseha for issue #80. There is ongoing discussion in that issue on what and how exactly to fix. I doubt a pull request with only the result their own generator would be useful: they just need the time to think what to do. Since I needed a fix as soon as possible, and one was already available but not so easy to use, I made a fork so that everyone in my position can use it in the meantime. |
For clarification why #135 closes this issue: Instead of calling
Note the change in type of the last argument. There are a few more overloads with |
as of version 1.14, the race detector enables checkptr https://golang.org/doc/go1.14#compiler which fails on PtrOffset, at least for example in VertexAttribPointer:
Not sure there is much to be done about this given the logic of checkptr but just in case someone else hits this obstacle, here's how to overcome it:
go build -race -gcflags=all=-d=checkptr=0
The text was updated successfully, but these errors were encountered: