Bug 345 - Improve handling of pbuffers with non-power-of-2 sizes
Summary: Improve handling of pbuffers with non-power-of-2 sizes
Status: VERIFIED INVALID
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All macosx
: P3 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2008-02-23 11:30 CET by Sven Gothel
Modified: 2015-09-27 03:14 CEST (History)
0 users

See Also:
Type: FEATURE
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:51:18 CET


---- Reported by peastman 2008-02-23 11:30:26 ----

On Mac OS X, if you create a GLPbuffer and specify a width or height that is not
a power of 2, it rounds the size up to the next power of two.  This is confusing
and inconsistent with other platforms.  It can be improved in several ways:

1. When the hardware supports non-power-of-2 textures, it should give you a
pbuffer of the size you requested.

2. If the hardware does not support it, it should throw an exception rather than
silently giving you a pbuffer of a different size than you requested.  This will
save a lot of confusion and bugs.  Programmers will discover their mistake
immediately rather than having the program seem to work but produce incorrect
results.

3. The Javadocs should discuss the limitations on pbuffer sizes so people will
be aware of them.

For more details, see this discussion thread:

http://www.javagaming.org/forums/index.php?topic=18218.0



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

This bug was previously known as _bug_ 345 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=345
Comment 1 Sven Gothel 2010-11-19 01:25:51 CET
works, see unit test jogl/src/junit/com/jogamp/test/junit/jogl/offscreen/TestOffscreen01NEWT.java