Issue Details (XML | Word | Printable)

Key: JOGL-374
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: jogl-issues
Reporter: kitfox
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
jogl

GL.GL_CLIENT_ALL_ATTRIB_BITS should be type int

Created: 13/May/09 08:19 PM   Updated: 14/May/09 04:35 AM
Component/s: jogl
Affects Version/s: current
Fix Version/s: milestone 1

Time Tracking:
Not Specified

Environment:

Operating System: All
Platform: All


Issuezilla Id: 374
Tags:
Participants: jogl-issues, kbr and kitfox


 Description  « Hide

GL.GL_CLIENT_ALL_ATTRIB_BITS is currently type long. It should be type int.



kbr added a comment - 13/May/09 10:38 PM

The use of long for this value is deliberate because of the lack of unsigned integer values in the Java
language. GlueGen automatically picks the next larger type when the sign bit is set, as in this value. I
don't remember exactly when we made the change to GlueGen but I am pretty sure it was motivated by
incorrect glue code generation for some set of C APIs, possibly OpenGL APIs. There is no plan to change
this unless there is a strong reason to do so.


kitfox added a comment - 14/May/09 04:35 AM

Well, right now you can't pass it to GL.glPushClientAttrib(), which only accepts
integers. I presume that casting it to int would chop off some important bits.