aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/util/texture/TextureIO.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/com/sun/opengl/util/texture/TextureIO.java')
-rwxr-xr-xsrc/classes/com/sun/opengl/util/texture/TextureIO.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/classes/com/sun/opengl/util/texture/TextureIO.java b/src/classes/com/sun/opengl/util/texture/TextureIO.java
index f1ac85ebd..fe7dacee4 100755
--- a/src/classes/com/sun/opengl/util/texture/TextureIO.java
+++ b/src/classes/com/sun/opengl/util/texture/TextureIO.java
@@ -646,7 +646,7 @@ public class TextureIO {
(height + (2 * border)) *
bytesPerPixel);
if (DEBUG) {
- System.err.println("Allocated buffer of size " + res.remaining() + " for fetched image (" +
+ System.out.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);
@@ -855,6 +855,10 @@ public class TextureIO {
if (img == null) {
return null;
}
+ if (DEBUG) {
+ System.out.println("TextureIO.newTextureData(): BufferedImage type for " + file + " = " +
+ img.getType());
+ }
return new TextureData(internalFormat, pixelFormat, mipmap, img);
}
@@ -867,6 +871,10 @@ public class TextureIO {
if (img == null) {
return null;
}
+ if (DEBUG) {
+ System.out.println("TextureIO.newTextureData(): BufferedImage type for stream = " +
+ img.getType());
+ }
return new TextureData(internalFormat, pixelFormat, mipmap, img);
}