Bug 140 - glu.gluBuild2DMipmaps crash
Summary: glu.gluBuild2DMipmaps crash
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All windows
: P3 normal
Assignee: Sven Gothel
Depends on:
Reported: 2005-02-13 05:36 CET by Sven Gothel
Modified: 2010-03-24 07:47 CET (History)
0 users

See Also:
SCM Refs:
Workaround: ---

Java prog + two jpg texture files. (654.61 KB, application/x-compressed)
2005-02-13 05:38 CET, Sven Gothel

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