diff options
author | Kenneth Russel <[email protected]> | 2006-05-20 14:25:48 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-05-20 14:25:48 +0000 |
commit | 183bbabb56c3fae1530d06bc045b159be5007098 (patch) | |
tree | c49e68775409a73368beb82d5951c99b8a09f061 /src | |
parent | 437584608fa8e479ba13f209ff42d609bda5c41d (diff) |
Removed debugging printlns
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@772 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src')
-rwxr-xr-x | src/classes/com/sun/opengl/util/texture/TextureIO.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/classes/com/sun/opengl/util/texture/TextureIO.java b/src/classes/com/sun/opengl/util/texture/TextureIO.java index b08bcd8a2..0adaf32d1 100755 --- a/src/classes/com/sun/opengl/util/texture/TextureIO.java +++ b/src/classes/com/sun/opengl/util/texture/TextureIO.java @@ -137,6 +137,8 @@ public class TextureIO { file. */ public static final String TIFF = "tiff"; + private static final boolean DEBUG = Debug.debug("TextureIO"); + //---------------------------------------------------------------------- // methods that *do not* require a current context // These methods assume RGB or RGBA textures. @@ -636,8 +638,10 @@ public class TextureIO { ByteBuffer res = ByteBuffer.allocate((width + (2 * border)) * (height + (2 * border)) * bytesPerPixel); - System.err.println("Allocated buffer of size " + res.remaining() + " for fetched image (" + - ((fetchedFormat == GL.GL_RGB) ? "GL_RGB" : "GL_RGBA") + ")"); + if (DEBUG) { + System.err.println("Allocated buffer of size " + res.remaining() + " for fetched image (" + + ((fetchedFormat == GL.GL_RGB) ? "GL_RGB" : "GL_RGBA") + ")"); + } gl.glGetTexImage(GL.GL_TEXTURE_2D, 0, fetchedFormat, GL.GL_UNSIGNED_BYTE, res); gl.glPixelStorei(GL.GL_PACK_ALIGNMENT, packAlignment); @@ -649,8 +653,10 @@ public class TextureIO { data = new TextureData(internalFormat, width, height, border, fetchedFormat, GL.GL_UNSIGNED_BYTE, false, false, false, res, null); - System.out.println("data.getPixelFormat() = " + - ((data.getPixelFormat() == GL.GL_RGB) ? "GL_RGB" : "GL_RGBA")); + if (DEBUG) { + System.out.println("data.getPixelFormat() = " + + ((data.getPixelFormat() == GL.GL_RGB) ? "GL_RGB" : "GL_RGBA")); + } } for (Iterator iter = textureWriters.iterator(); iter.hasNext(); ) { |