Posted by
Xerxes Rånby on
Mar 06, 2017; 11:47am
URL: https://forum.jogamp.org/Understanding-issue-with-automatic-buffer-swapping-tp4037728p4037742.html
I see the same issue that every second frame is using one un-cleared buffer when running the MultiViewportTest (AWT)
using Ubuntu 16.10 + AZUL 8 121 + OpenGL 4.5 compatible Mesa drivers for AMD
AsteroidSkyBoxTest and SpotLightTest is rendering fine using this setup, as well on the windows setup.
It is only the MultiViewportTest that is causing rendering on top of un-cleared buffer issues.

I am using this repository that contain Mesa 17 with OpenGL 4.5 support for AMD APU:
https://launchpad.net/~oibaf/+archive/ubuntu/graphics-driversPlatform: Java Version: 1.8.0_121 (1.8.0u121), VM: OpenJDK 64-Bit Server VM, Runtime: OpenJDK Runtime Environment
Platform: Java Vendor: Azul Systems, Inc.,
http://www.azulsystems.com/, JavaSE: true, Java6: true, AWT enabled: true
X11GraphicsDevice[type .x11, connection :0]:
Natives
GL4bc false
GL4 true [4.5 (Core profile, arb, compat[ES2, ES3, ES31, ES32], FBO, hardware)]
GLES3 true [3.1 (ES profile, arb, compat[ES2, ES3, ES31], FBO, hardware)]
GL3bc false
GL3 true [4.5 (Core profile, arb, compat[ES2, ES3, ES31, ES32], FBO, hardware)]
GL2 true [3.0 (Compat profile, arb, compat[ES2], FBO, hardware)]
GLES2 true [3.1 (ES profile, arb, compat[ES2, ES3, ES31], FBO, hardware)]
GLES1 true [1.1 (ES profile, arb, compat[FP32], hardware)]
Count 6 / 8
Common
GL4ES3 true
GL2GL3 true
GL2ES2 true
GL2ES1 true
Mappings
GLES1 GLProfile[GLES1/GLES1.hw]
GLES2 GLProfile[GLES2/GLES3.hw]
GL2ES1 GLProfile[GL2ES1/GL2.hw]
GL4ES3 GLProfile[GL4ES3/GL4.hw]
GL2ES2 GLProfile[GL2ES2/GL4.hw]
GL2 GLProfile[GL2/GL2.hw]
GLES3 GLProfile[GLES3/GLES3.hw]
GL4 GLProfile[GL4/GL4.hw]
GL3 GLProfile[GL3/GL4.hw]
GL2GL3 GLProfile[GL2GL3/GL4.hw]
default GLProfile[GL2/GL2.hw]
Count 10 / 12
Swap Interval 1
GL Profile GLProfile[GL2/GL2.hw]
GL Version 3.0 (Compat profile, arb, compat[ES2], FBO, hardware) - 3.0 Mesa 17.1.0-devel [GL 3.0.0, vendor 17.1.0 (Mesa 17.1.0-devel)]
Quirks [NoDoubleBufferedPBuffer, NoSetSwapIntervalPostRetarget]
Impl. class jogamp.opengl.gl4.GL4bcImpl
GL_VENDOR X.Org
GL_RENDERER Gallium 0.4 on AMD MULLINS (DRM 2.46.0 / 4.8.0-39-generic, LLVM 4.0.0)
GL_VERSION 3.0 Mesa 17.1.0-devel
GLSL true, has-compiler-func: true, version: 1.30 / 1.30.0
GL FBO: basic true, full true
GL_EXTENSIONS 241
GLX_EXTENSIONS 30