Bug 1016

Summary: GLJPanel Offscreen FBO size may exceed GL MAX TEXTURE SIZE, only use an FBO TextureAttachment if required
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: awtAssignee: Sven Gothel <sgothel>
Status: RESOLVED FIXED    
Severity: normal CC: askinner
Priority: ---    
Version: 2   
Hardware: All   
OS: all   
Type: --- SCM Refs:
9be28a33fa92cfa52bdf13ad5c21f8317f66c319
Workaround: ---
Bug Depends on: 1037    
Bug Blocks:    

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.