Bug 267 - class DDSImage return incorrect mipmap level data.
Summary: class DDSImage return incorrect mipmap level data.
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:
Depends on:
Blocks:
 
Reported: 2007-01-24 02:18 CET by Sven Gothel
Modified: 2010-03-24 07:49 CET (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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