diff options
Diffstat (limited to 'src/java/com/sun/gluegen/opengl/GLEmitter.java')
-rw-r--r-- | src/java/com/sun/gluegen/opengl/GLEmitter.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/java/com/sun/gluegen/opengl/GLEmitter.java b/src/java/com/sun/gluegen/opengl/GLEmitter.java index ae4d5ec..66c9ccc 100644 --- a/src/java/com/sun/gluegen/opengl/GLEmitter.java +++ b/src/java/com/sun/gluegen/opengl/GLEmitter.java @@ -331,6 +331,12 @@ public class GLEmitter extends ProcAddressEmitter } protected void validateFunctionsToBind(Set/*FunctionSymbol*/ funcsSet) { + super.validateFunctionsToBind(funcsSet); + + String localCallingConvention = ((GLConfiguration)cfg).getLocalProcAddressCallingConvention4All(); + if(null==localCallingConvention) { + localCallingConvention="GL_APIENTRY"; + } ArrayList newUniFuncs = new ArrayList(); HashSet origFuncNames = new HashSet(); for (Iterator iter = funcsSet.iterator(); iter.hasNext(); ) { @@ -362,7 +368,7 @@ public class GLEmitter extends ProcAddressEmitter ((GLConfiguration)cfg).addForceProcAddressGen(uniName.getUni()); // Make sure we produce the right calling convention for // the typedefed function pointers on Windows - ((GLConfiguration)cfg).addLocalProcAddressCallingConvention(uniName.getUni(), "GL_APIENTRY"); + ((GLConfiguration)cfg).addLocalProcAddressCallingConvention(uniName.getUni(), localCallingConvention); } } } |