aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-06-18 03:42:13 +0200
committerSven Gothel <[email protected]>2012-06-18 03:42:13 +0200
commit6f5f8a8eb046689e49668dd4d82e48bc7cb341d7 (patch)
treeb6e12865432d1e1cf10cb36359d99b356fcda43d /src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java
parente8078eb70f6f82613d730ae5b8f837ccb46b81fb (diff)
TextureIO TGA/PNG: Use RGB[9] for 1-3 channel data; PNGImage(PNGJ) add 1 channel (Luminance) read/write
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java15
1 files changed, 10 insertions, 5 deletions
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 a94b1f827..49d4add5f 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java
@@ -907,12 +907,17 @@ public class Texture {
}
} else {
if (mustFlipVertically) {
- coords = new TextureCoords(0, (float) imgHeight / (float) texHeight,
- (float) imgWidth / (float) texWidth, 0);
+ coords = new TextureCoords(0, // l
+ (float) imgHeight / (float) texHeight, // b
+ (float) imgWidth / (float) texWidth, // r
+ 0 // t
+ );
} else {
- coords = new TextureCoords(0, 0,
- (float) imgWidth / (float) texWidth,
- (float) imgHeight / (float) texHeight);
+ coords = new TextureCoords(0, // l
+ 0, // b
+ (float) imgWidth / (float) texWidth, // r
+ (float) imgHeight / (float) texHeight // t
+ );
}
}
}