Bug 276

Summary: Bug in handling of RGB-like custom BufferedImages in TextureIO
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 1   
Hardware: All   
OS: all   
URL: http://www.javagaming.org/forums/index.php?topic=15966.0
Type: DEFECT SCM Refs:
Workaround: ---
Attachments: Java source for test case
Image for test case

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.