summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/awt/VersionApplet.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-10-05 08:24:43 +0200
committerSven Gothel <[email protected]>2015-10-05 08:24:43 +0200
commit5d0c40061b11909253f07b347db0342b1be38c80 (patch)
tree94e46bc004ca067ea8ed54dec16436edf1676164 /src/jogl/classes/jogamp/opengl/awt/VersionApplet.java
parent424a8617324911d71461c411847b6323d53ec0ed (diff)
Bug 1206 - Security: Clear exposed framebuffer after creation and before visibility
Experimenting w/ no GLEventListener attached to an GLAutoDrawable, e.g. GLWindow (onscreen), GLJPanel (fbo offscreen), indeed on some GL implementations the default framebuffer is uninitialized and hence shows garbage. GLDrawableHelper.setViewportAndClear(..) - Clear framebuffer after setting viewport - Called from: - public final void init(..) - public final void reshape(..) - Method is used independent of GLEventListener, hence this simplifies implementation: removes 'setViewport' criteria for init, display, reshape: it is always performed! Note: We only attempt to help against leaking un-initialized framebuffer content not against user-app faults, we do not clear a 2nd-buffer (double-buffering). Note: We may still be late at resize, i.e. small noisy flickering might be visible. This might be due to lack of proper vsync.
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/awt/VersionApplet.java')
0 files changed, 0 insertions, 0 deletions