Bug 1266 - Per canvas GLSL vertical flip skip method
Summary: Per canvas GLSL vertical flip skip method
Alias: None
Product: Jogl
Classification: JogAmp
Component: awt (show other bugs)
Version: tbd
Hardware: All all
: P5 normal
Assignee: Sven Gothel
Depends on:
Reported: 2015-11-09 10:38 CET by Julien Gouesse
Modified: 2019-03-29 13:58 CET (History)
1 user (show)

See Also:
SCM Refs:
Workaround: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Julien Gouesse 2015-11-09 10:38:19 CET
Actually, it is possible to disable the GLSL vertical flip performed in GLJPanel by using the property jogl.gljpanel.noglsl. However, it affects all instances, there is no clean way of disabling it only for one instance of this class.

This possibility would be useful in a software using both plain GLJPanel instances in good conditions with this flip enabled and some GLJPanel instances built by some scenegraph APIs with which this feature can cause some conflicts with their build-in shaders, especially in JMonkeyEngine 3 and in JogAmp's Ardor3D Continuation. This flip has some limitations:

I suggest to add a flag "glslFlipEnabled" into GLJPanel set to the same value than USE_GLSL_TEXTURE_RASTERIZER by default. It could be used here:

This flag can be implemented in the same way than skipGLOrientationVerticalFlip but the documentation should mention that modifying it after the initialization makes no sense and has no effect.