diff options
author | Sven Gothel <[email protected]> | 2014-02-18 21:49:37 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-02-18 21:49:37 +0100 |
commit | b96fc594f15fcf9ee0fd238ce8d7a10aea781d32 (patch) | |
tree | 858e2362b3ccbcc2e948d677ad20321249f68da4 /src/jogl/classes/jogamp/opengl/GLDrawableImpl.java | |
parent | 41190c3830157abdf9649cbf7767e57108f55075 (diff) |
GLContextImpl/GLDrawableImpl.getDefaultReadBuffer(..): Pass hint whether dedicated read-drawable is being used (double buffering)
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/GLDrawableImpl.java')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/GLDrawableImpl.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLDrawableImpl.java b/src/jogl/classes/jogamp/opengl/GLDrawableImpl.java index 94d39a4ab..d11274560 100644 --- a/src/jogl/classes/jogamp/opengl/GLDrawableImpl.java +++ b/src/jogl/classes/jogamp/opengl/GLDrawableImpl.java @@ -260,8 +260,8 @@ public abstract class GLDrawableImpl implements GLDrawable { /** Callback for special implementations, allowing GLContext to fetch a custom default read framebuffer. Defaults to zero. */ protected int getDefaultReadFramebuffer() { return 0; } /** Callback for special implementations, allowing GLContext to fetch a custom default read buffer of current framebuffer. */ - protected int getDefaultReadBuffer(GL gl) { - if(gl.isGLES() || getChosenGLCapabilities().getDoubleBuffered()) { + protected int getDefaultReadBuffer(GL gl, boolean hasDedicatedDrawableRead) { + if( gl.isGLES() || hasDedicatedDrawableRead || getChosenGLCapabilities().getDoubleBuffered() ) { // Note-1: Neither ES1 nor ES2 supports selecting the read buffer via glReadBuffer // Note-2: ES3 only supports GL_BACK, GL_NONE or GL_COLOR_ATTACHMENT0+i return GL.GL_BACK; |