jogl
  1. jogl
  2. JOGL-345

Improve handling of pbuffers with non-power-of-2 sizes

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: jogl
    • Labels:
      None
    • Environment:

      Operating System: Mac OS X
      Platform: Macintosh

    • Issuezilla Id:
      345

      Description

      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

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            jogl-issues
            Reporter:
            peastman
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: