Bug 15

Summary: GLuint is mapped to int instead of long
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: VERIFIED WONTFIX    
Severity: normal    
Priority: P3    
Version: 1   
Hardware: All   
OS: all   
Type: DEFECT SCM Refs:
Workaround: ---

Description Sven Gothel 2010-03-24 07:45:27 CET


---- Reported by pepijnve 2003-06-23 01:00:50 ----

GLuint parameters are converted to java int paramters. This causes incorrect
values to be read on the java side for instance when performing selection. The
int array that the glSelectBuffer(int size, int[] buffer) method receives
contains values that are incorrect if they are not converted to long values
first (ie intValue & 0xFFFFFFFFL).



---- Additional Comments From kbr 2003-07-14 22:38:03 ----

This will not be fixed. There is no way to efficiently map an integral C type to
a Java int type of a different size. You will have to manually zero-extend these
values. If you have suggestions on how to make this easier for the end user
(perhaps with a helper class) please file an RFE.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:45 EDT  ---

This bug was previously known as _bug_ 15 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=15