From ab860381009c0716a99d33f0ce99f44617edf9ce Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 2 Oct 2013 16:29:37 +0200 Subject: Add notice about 'GL states' regarding GLSL vertical flip (Bug 842 and Bug 826). --- src/jogl/classes/javax/media/opengl/awt/GLJPanel.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes') diff --git a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java index 7002fabb6..14efbc302 100644 --- a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java +++ b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java @@ -142,8 +142,19 @@ import com.jogamp.opengl.util.texture.TextureState;
FBO / GLSL Vertical Flip
The FBO / GLSL code path uses one texture-unit and binds the FBO texture to it's active texture-target, see {@link #setTextureUnit(int)} and {@link #getTextureUnit()}. - If the application uses the same texture-unit, ensure it setup their texture properly, i.e. texture-unit bind, enable and then it's parameters, - see {@link Texture#textureCallOrder Order of Texture Commands}. +

+ The active and dedicated texture-unit's {@link GL#GL_TEXTURE_2D} state is preserved via {@link TextureState}. + See also {@link Texture#textureCallOrder Order of Texture Commands}. +

+

+ The current gl-viewport is preserved. +

+

+ Warning (Bug 842): Certain GL states other than viewport and texture (see above) + influencing rendering, will also influence the GLSL vertical flip, e.g. {@link GL#glFrontFace(int) glFrontFace}({@link GL#GL_CCW}). + It is recommended to reset those states to default when leaving the {@link GLEventListener#display(GLAutoDrawable)} method! + We may change this behavior in the future, i.e. preserve all influencing states. +

*/ @SuppressWarnings("serial") -- cgit v1.2.3