diff options
author | Sven Gothel <[email protected]> | 2023-07-15 14:35:02 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-07-15 14:35:02 +0200 |
commit | be9c3e42e618148584689a1ccf30c8c3f4e6227a (patch) | |
tree | 6daa57deb2ba89640c44da0a75bcada528c04570 /src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java | |
parent | ddbffc38f001e3297d560ab1f6b3e7575771bdc5 (diff) |
Add {GL, GLContext}.getDefaultDrawBuffer() to complement getDefaultReadBuffer()
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java b/src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java index 8ec3c0dd9..2bc682324 100644 --- a/src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java +++ b/src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java @@ -411,6 +411,11 @@ public class GLFBODrawableImpl extends GLDrawableImpl implements GLFBODrawable { protected final int getDefaultReadFramebuffer() { return initialized ? fbos[fboIFront].getReadFramebuffer() : 0; } @Override + protected final int getDefaultDrawBuffer(final GL gl) { + return initialized ? fbos[fboIBack].getDefaultDrawBuffer() : GL.GL_COLOR_ATTACHMENT0 ; + } + + @Override protected final int getDefaultReadBuffer(final GL gl, final boolean hasDedicatedDrawableRead) { return initialized ? fbos[fboIFront].getDefaultReadBuffer() : GL.GL_COLOR_ATTACHMENT0 ; } |