From 4d33a2df1e991ab75817dcb44061d88d3c499cdb Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 1 Aug 2011 15:16:14 +0200 Subject: VBO and Texture Names: Allos (int) < 0 - unusual valid names for some GL impl. Turns out some GL impl. use VBO names like 0xa2d67443, which is (int) < 0. --- src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java') diff --git a/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java b/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java index 08f56ef27..b6df365ba 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java +++ b/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java @@ -269,7 +269,7 @@ public class Texture { * @throws GLException if any OpenGL-related errors occurred */ public void destroy(GL gl) throws GLException { - if(0= texID ) { + if( 0 == texID ) { if( null != gl ) { int[] tmp = new int[1]; gl.glGenTextures(1, tmp, 0); texID = tmp[0]; - if ( 0 >= texID && throwException ) { + if ( 0 == texID && throwException ) { throw new GLException("Create texture ID invalid: texID "+texID+", glerr 0x"+Integer.toHexString(gl.glGetError())); } } else if ( throwException ) { throw new GLException("No GL context given, can't create texture ID"); } } - return 0 < texID; + return 0 != texID; } // Helper routines for disabling certain codepaths -- cgit v1.2.3