diff options
author | Sven Gothel <[email protected]> | 2012-09-27 17:38:01 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-09-27 17:38:01 +0200 |
commit | 285bd9b718621a70f180dff6dfea73092c2b75cc (patch) | |
tree | c386083d6d30edb2e75601569165e82e3ffd5c18 /src/jogl/classes/jogamp/opengl | |
parent | fbe331f013608eb31ff0d8675f4e4c9881c9c48b (diff) |
FBObject: Clarify reset(..), resetSamplingSink(..) ; Rename syncFramebuffer(..) -> syncSamplingSink(..)
- reset(..) adds a new argument, boolean resetSamplingSink, allowing to trigger a reset
on the samplink sink as well. Use cases are documented.
- made public: resetSamplingSink()
- Rename syncFramebuffer(..) -> syncSamplingSink(..) to clarify semantics
Diffstat (limited to 'src/jogl/classes/jogamp/opengl')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java b/src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java index d7de7ca50..503b70af7 100644 --- a/src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java +++ b/src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java @@ -102,7 +102,7 @@ public class GLFBODrawableImpl extends GLDrawableImpl implements GLFBODrawable { for(int i=0; i<fbosN; i++) { fbos[i] = new FBObject(); - fbos[i].reset(gl, getWidth(), getHeight(), samples); + fbos[i].reset(gl, getWidth(), getHeight(), samples, false); if(fbos[i].getNumSamples() != samples) { throw new InternalError("Sample number mismatch: "+samples+", fbos["+i+"] "+fbos[i]); } @@ -117,7 +117,7 @@ public class GLFBODrawableImpl extends GLDrawableImpl implements GLFBODrawable { fbos[i].attachRenderbuffer(gl, Attachment.Type.DEPTH, 24); } } - fbos[fboIFront].syncFramebuffer(gl); + fbos[fboIFront].resetSamplingSink(gl); fboBound = false; final GLCapabilities fboCapsNative = (GLCapabilities) surface.getGraphicsConfiguration().getChosenCapabilities(); fbos[0].formatToGLCapabilities(fboCapsNative); @@ -148,14 +148,14 @@ public class GLFBODrawableImpl extends GLDrawableImpl implements GLFBODrawable { private final void reset(GL gl, int idx, int width, int height, int samples, int alphaBits, int stencilBits) { if( !FBOResetQuirk ) { - fbos[idx].reset(gl, width, height, samples); // implicit glClear(..) + fbos[idx].reset(gl, width, height, samples, false); if(fbos[idx].getNumSamples() != samples) { throw new InternalError("Sample number mismatch: "+samples+", fbos["+idx+"] "+fbos[idx]); } } else { fbos[idx].destroy(gl); fbos[idx] = new FBObject(); - fbos[idx].reset(gl, getWidth(), getHeight(), samples); + fbos[idx].reset(gl, getWidth(), getHeight(), samples, false); if(fbos[idx].getNumSamples() != samples) { throw new InternalError("Sample number mismatch: "+samples+", fbos["+idx+"] "+fbos[idx]); } |