aboutsummaryrefslogtreecommitdiffstats
path: root/make/scripts/cpp-gluegen-test.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-02-13 21:32:36 +0100
committerSven Gothel <[email protected]>2014-02-13 21:32:36 +0100
commit908ebd99d1eb57ce773a1fdd67c76886da86b9e6 (patch)
treeb453b2beb3abc60acaabd87b2f2a5eb4d200302d /make/scripts/cpp-gluegen-test.sh
parent8be9d9b5bd71854f4da15294b47125a8a4975e31 (diff)
Bug 975 - GLJPanel's OffscreenDrawable shall not double swap (custom swap by GLEventListener using [AWT]GLReadBufferUtil)
When utilizing [AWT]GLReadBufferUtil it is usually desired to read from the front-buffer instead the back-buffer. The latter may not be defined, e.g. when using MSAA. A GLEventListener utilizing [AWT]GLReadBufferUtil, must perform the drawable.swapBuffers() to be able to read from the front-buffer. Usually GLAutoDrawable.setAutoSwapBuffer(false) should be called here, to avoid a double swap - however GLJPanel does not support toggling auto-swap since it requires to control swap for it's own read-pixels. Remedy for GLJPanel: - GLJPanel issues helper.setAutoSwapBufferMode(false) - immutable - Enable GLJPanel.swapBuffer() if initializes This was previously disabled. - GLJPanel's OffscreenBackend listens to surfaceUpdated, to be notified whether postGL needs to swap buffer or the drawable.swapBuffer() was already called between preGL and postGL. See unit tests adding/removing a snapshot GLEventListener performing swapBuffers() and setting auto-swap accordingly.
Diffstat (limited to 'make/scripts/cpp-gluegen-test.sh')
0 files changed, 0 insertions, 0 deletions