diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/java/com/sun/gluegen/cgram/types/FunctionSymbol.java | 5 | ||||
-rw-r--r-- | src/java/com/sun/gluegen/opengl/BuildComposablePipeline.java | 2 | ||||
-rw-r--r-- | src/java/com/sun/gluegen/opengl/GLEmitter.java | 4 |
3 files changed, 10 insertions, 1 deletions
diff --git a/src/java/com/sun/gluegen/cgram/types/FunctionSymbol.java b/src/java/com/sun/gluegen/cgram/types/FunctionSymbol.java index bc54538..65e172f 100644 --- a/src/java/com/sun/gluegen/cgram/types/FunctionSymbol.java +++ b/src/java/com/sun/gluegen/cgram/types/FunctionSymbol.java @@ -110,6 +110,11 @@ public class FunctionSymbol { } FunctionSymbol other = (FunctionSymbol) arg; + + if(getName()==null && other.getName()!=null) { + return false; + } + return ( (getName() == other.getName() || getName().equals(other.getName())) && type.equals(other.type)); diff --git a/src/java/com/sun/gluegen/opengl/BuildComposablePipeline.java b/src/java/com/sun/gluegen/opengl/BuildComposablePipeline.java index dcfa682..b39e8a1 100644 --- a/src/java/com/sun/gluegen/opengl/BuildComposablePipeline.java +++ b/src/java/com/sun/gluegen/opengl/BuildComposablePipeline.java @@ -613,6 +613,7 @@ public class BuildComposablePipeline */ protected void emitGLIsMethods(PrintWriter output) { emitGLIsMethod(output, "GL"); + emitGLIsMethod(output, "GL3"); emitGLIsMethod(output, "GL2"); emitGLIsMethod(output, "GLES1"); emitGLIsMethod(output, "GLES2"); @@ -641,6 +642,7 @@ public class BuildComposablePipeline */ protected void emitGLGetMethods(PrintWriter output) { emitGLGetMethod(output, "GL"); + emitGLGetMethod(output, "GL3"); emitGLGetMethod(output, "GL2"); emitGLGetMethod(output, "GLES1"); emitGLGetMethod(output, "GLES2"); diff --git a/src/java/com/sun/gluegen/opengl/GLEmitter.java b/src/java/com/sun/gluegen/opengl/GLEmitter.java index d49f9f1..fff9d7e 100644 --- a/src/java/com/sun/gluegen/opengl/GLEmitter.java +++ b/src/java/com/sun/gluegen/opengl/GLEmitter.java @@ -100,7 +100,9 @@ public class GLEmitter extends ProcAddressEmitter } if (isGLFunction || isGLEnumeration) { String renamed = GLExtensionNames.normalize(decl, isGLFunction); - config.addJavaSymbolRename(decl, renamed); + if(!renamed.equals(decl)) { + config.addJavaSymbolRename(decl, renamed); + } } } } |