Bug 1016 - GLJPanel Offscreen FBO size may exceed GL MAX TEXTURE SIZE, only use an FBO TextureAttachment if required
Summary: GLJPanel Offscreen FBO size may exceed GL MAX TEXTURE SIZE, only use an FBO T...
Status: RESOLVED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: awt (show other bugs)
Version: 2
Hardware: All all
: --- normal
Assignee: Sven Gothel
URL:
Depends on: 1037
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-06 19:39 CEST by Sven Gothel
Modified: 2014-07-28 19:06 CEST (History)
1 user (show)

See Also:
Type: ---
SCM Refs:
9be28a33fa92cfa52bdf13ad5c21f8317f66c319
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2014-06-06 19:39:30 CEST
Some GL implementations (Mesa) have the limits:
  [texture 2048, renderbuffer 4096]

When creating the offscreen FBO for GLJPanel w/ a size exceeding
above limits - it fails ofc.

Several mitigation are possible:
  [A] Use a color- renderbuffer w/o texture using the increased limit, if:
        [A.1] renderbuffer limit is not exceeded
        [A.2] not using GLSL vertical flip, i.e.
           - setSkipGLOrientationVerticalFlip
           - java pixel copy

  [C] Scale the FBO if exceeding both limits [texture- and renderbuffer)

  [B] Use tiled rendering (optional - expensive, should be avoided)
Comment 1 Sven Gothel 2014-07-28 19:06:13 CEST
9be28a33fa92cfa52bdf13ad5c21f8317f66c319: 

We only require an FBO TextureAttachment if using GLSL vertical flip,
otherwise we simply requires a color renderbuffer.
    
Further, the 'FBO fboFlipped' in GLSL vertical flip mode also simply requires a color renderbuffer.