From bab6160df764871f6fa4db040362976f028d015b Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 5 Oct 2012 18:46:16 +0200 Subject: Refine ed7d5f2e3fc696d47b10c8d62a071643bf385588, set and restore FBO caps @ setRealized(true/false) already, refine at initialize(true) Allowing to validate the on-/offscreen state after setRealized(true). Adding comment in GLFBODrawable. --- src/jogl/classes/javax/media/opengl/GLFBODrawable.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/jogl/classes/javax/media/opengl/GLFBODrawable.java') diff --git a/src/jogl/classes/javax/media/opengl/GLFBODrawable.java b/src/jogl/classes/javax/media/opengl/GLFBODrawable.java index 45fd3b686..079d9af5c 100644 --- a/src/jogl/classes/javax/media/opengl/GLFBODrawable.java +++ b/src/jogl/classes/javax/media/opengl/GLFBODrawable.java @@ -39,7 +39,9 @@ import com.jogamp.opengl.FBObject.TextureAttachment; * *

* A {@link GLFBODrawable} is uninitialized until a {@link GLContext} is bound - * and made current the first time. + * and made current the first time, hence only then it's capabilities fully reflect expectations, + * i.e. color, depth, stencil and MSAA bits will be valid only after the first {@link GLContext#makeCurrent() makeCurrent()} call. + * On-/offscreen bits are valid after {@link #setRealized(boolean) setRealized(true)}. *

* *

-- cgit v1.2.3