diff options
author | Kenneth Russel <[email protected]> | 2007-02-22 17:09:28 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2007-02-22 17:09:28 +0000 |
commit | 798b0f44d38f79603b72e509fa3b8555e5464b5c (patch) | |
tree | 693ab848e5ceb9193aa265562d403f21171f0b3a /src | |
parent | 3f998a7821057a50c9651c01b8bfef2492e7dd38 (diff) |
Fixed Issue 276: Bug in handling of RGB-like custom BufferedImages in TextureIO
Code path handling RGB-like TYPE_CUSTOM BufferedImages in the
TextureIO classes should have been computing the row length by
dividing the scanline stride by 3, not 4.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1150 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src')
-rwxr-xr-x | src/classes/com/sun/opengl/util/texture/TextureData.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/classes/com/sun/opengl/util/texture/TextureData.java b/src/classes/com/sun/opengl/util/texture/TextureData.java index 39075e387..67e5d347e 100755 --- a/src/classes/com/sun/opengl/util/texture/TextureData.java +++ b/src/classes/com/sun/opengl/util/texture/TextureData.java @@ -515,7 +515,7 @@ public class TextureData { if (cm.equals(rgbColorModel)) { pixelFormat = GL.GL_RGB; pixelType = GL.GL_UNSIGNED_BYTE; - rowLength = scanlineStride / 4; // FIXME: correct? + rowLength = scanlineStride / 3; alignment = 1; } else if (cm.equals(rgbaColorModel)) { pixelFormat = GL.GL_RGBA; |