Bug 140

Summary: glu.gluBuild2DMipmaps crash
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 1   
Hardware: All   
OS: windows   
Type: DEFECT SCM Refs:
Workaround: ---
Attachments: Java prog + two jpg texture files.

Description Sven Gothel 2010-03-24 07:47:28 CET


---- Reported by jzwiers 2005-02-13 05:36:20 ----

glu.gluBuild2DMipmaps seems to crash for textures that have a non power-of-two 
size. When loading the same texture "cropped" to 512 X 512, there are no 
problems. The problem showed up in the latest (1.1b08) version.



---- Additional Comments From jzwiers 2005-02-13 05:38:19 ----

Created an attachment
Java prog + two jpg texture files.




---- Additional Comments From kbr 2005-02-23 01:39:19 ----

This was a bug in the SGI GLU sample implementation and was reproduced
by converting the attached test program to C and compiling in the code
from the sample implementation. This bug was already fixed in the Mesa
sources as https://jogl.dev.java.net/bugs/show_bug.cgi?id=2510 and the patch was found at
http://cvs.freedesktop.org/mesa/Mesa/src/glu/sgi/libutil/mipmap.c?rev=1.6&view=log
by Googling for the terms "mipmap.c last row". The fix is to add a
test-and-clamp for the highest row read from the texture.

There is still a problem with visual artifacts when scaling
non-power-of-two textures that this test case reproduces and that is
continuing to be investigated.




---- Additional Comments From kbr 2005-02-23 02:06:27 ----

Last portion of fix. Fixed typo in one loop in scale_internal_byte and
scale_internal_ubyte routines, correcting visual artifacts. Fixed
truncated comments.




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

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

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