Add the line: config.useOpenGL3(true, 3, 0);(3, 2 will cause the same issue)
Run the demo. Add some effects. Observe that when an odd amount of effects is added, nothing is rendered. When the amount is even, the buffer is shown, but the affects are not applied.
The Cause
ViewportQuadMesh uses VertexDataType.VertexArray, which is not supported on OpenGL 3.x. Removing the explicit data type specification makes the Mesh choose its own data type based on the type of OpenGL available.
When OpenGL 3.x is enabled, effects (and sometimes even the whole buffer) are not displayed.
Steps to reproduce
DesktopLauncher.java
in the demo source.config.useOpenGL3(true, 3, 0);
(3, 2 will cause the same issue)The Cause
ViewportQuadMesh
usesVertexDataType.VertexArray
, which is not supported on OpenGL 3.x. Removing the explicit data type specification makes theMesh
choose its own data type based on the type of OpenGL available.