Bug 276 - Bug in handling of RGB-like custom BufferedImages in TextureIO
Summary: Bug in handling of RGB-like custom BufferedImages in TextureIO
Status: VERIFIED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All all
: P3 normal
Assignee: Sven Gothel
URL: http://www.javagaming.org/forums/inde...
Depends on:
Blocks:
 
Reported: 2007-02-22 09:06 CET by Sven Gothel
Modified: 2010-03-24 07:50 CET (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments
Java source for test case (2.48 KB, text/plain)
2007-02-22 09:07 CET, Sven Gothel
Details
Image for test case (3.66 KB, image/png)
2007-02-22 09:08 CET, Sven Gothel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2010-03-24 07:50:07 CET


---- Reported by kbr 2007-02-22 09:06:08 ----

The code path which handles RGB-like TYPE_CUSTOM BufferedImages in the TextureIO
classes is computing the row length incorrectly. It should be dividing the
scanline stride by 3 instead of 4. This happens most often with PNG images.



---- Additional Comments From kbr 2007-02-22 09:07:43 ----

Created an attachment
Java source for test case




---- Additional Comments From kbr 2007-02-22 09:08:03 ----

Created an attachment
Image for test case




---- Additional Comments From kbr 2007-02-22 09:09:33 ----

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.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:50 EDT  ---

This bug was previously known as _bug_ 276 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=276
Imported an attachment (id=93)
Imported an attachment (id=94)

The original submitter of attachment 93 [details] is unknown.
   Reassigning to the person who moved it here: sgothel@jausoft.com.
The original submitter of attachment 94 [details] is unknown.
   Reassigning to the person who moved it here: sgothel@jausoft.com.