Bug 267

Summary: class DDSImage return incorrect mipmap level data.
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   
Type: DEFECT SCM Refs:
Workaround: ---

Description Sven Gothel 2010-03-24 07:49:56 CET


---- Reported by bandures 2007-01-24 02:18:11 ----

class DDSImage return incorrect mipmap level data for lowest mipmaps in case
then image width and height not equal. In that case mipMapHeight or mipMapWidth
can return 0.

To fix problem, in mipMapHeight/mipMapWidth need to make following change:
>    return height;
to
>    return Math.max( height, 1 );



---- Additional Comments From kbr 2007-01-26 11:48:53 ----

Thanks for the patch. It's been applied to the JOGL source tree.




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

This bug was previously known as _bug_ 267 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=267