Jogamp
Bug 1020 - First MSAA FBO frame on a mac osx nvidia card not antialiased
authorSven Gothel <sgothel@jausoft.com>
Sun, 31 Aug 2014 03:53:28 +0000 (05:53 +0200)
committerSven Gothel <sgothel@jausoft.com>
Sun, 31 Aug 2014 03:53:28 +0000 (05:53 +0200)
commitab07820e346f23aabc9d9364b7205017422cfaed
treeb7be20cae0a5e9b1438a51eecc110f019adc8001
parent359ecbdd9cefaabeb1050be706ddeb020e5b6c37
Bug 1020 - First MSAA FBO frame on a mac osx nvidia card not antialiased

OSX/Nvidia's FBO needs to be cleared before blitting,
otherwise first MSAA frame lacks antialiasing.

GLFBODrawableImpl.initialize(..) can clear
GL.GL_COLOR_BUFFER_BIT and GL.GL_DEPTH_BUFFER_BIT, if used.

FBObject cannot clear the buffer(s) due to it's low-level API,
i.e. it cannot know when the first bind occurs _after_ user
completed FBO setup (attaching buffers).

Hence plain FBObject usage required manual injection
of glClear(..) after setup as demonstrated in GLJPanel.

We may need to elaborate in this case,
i.e. add an FBObject API entry like 'fbo.postInitNotify()'.
src/jogl/classes/javax/media/opengl/awt/GLJPanel.java
src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java
http://JogAmp.org git info: FAQ, tutorial and man pages.