Skip to content
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

CLIENT_ALL_ATTRIB_BITS: constant -1 overflows gl.GLbitfield #64

Closed
pwaller opened this issue Aug 16, 2012 · 2 comments
Closed

CLIENT_ALL_ATTRIB_BITS: constant -1 overflows gl.GLbitfield #64

pwaller opened this issue Aug 16, 2012 · 2 comments
Assignees

Comments

@pwaller
Copy link
Contributor

pwaller commented Aug 16, 2012

CLIENT_ALL_ATTRIB_BITS                        = -0x1

This is not compatible with a function call to gl.PushClientAttrib.

# gl.PushClientAttrib(gl.CLIENT_ALL_ATTRIB_BITS)
experiment.go:32: constant -1 overflows gl.GLbitfield
@banthar
Copy link
Contributor

banthar commented Oct 14, 2012

This can be solved by adding explicit type to those constants:

    CLIENT_ALL_ATTRIB_BITS                        GLbitfield = C.GL_CLIENT_ALL_ATTRIB_BITS

Unless, they are used somewhere else as different type.

@pwaller
Copy link
Contributor Author

pwaller commented Oct 14, 2012

Since the new method of generating the constants, this appears not to be an issue anymore.

@pwaller pwaller closed this as completed Oct 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants