Re: JOGL 2.0 (OpenGL/OpenGL-ES) backend for LibGDX
Posted by
Xerxes Rånby on
Jun 10, 2015; 1:23pm
URL: https://forum.jogamp.org/JOGL-2-0-OpenGL-OpenGL-ES-backend-for-LibGDX-tp4027689p4034638.html
Peter wrote
The is also a lot of erros when i try to run project at Eclipse:
...
Caused by: java.lang.IllegalArgumentException: Error compiling shader: ERROR: 0:1: '' : #version required and missing.
ERROR: 0:1: 'attribute' : syntax error: syntax error
ERROR: 0:1: '' : #version required and missing.
ERROR: 0:7: 'varying' : syntax error: syntax error
at com.badlogic.gdx.graphics.g2d.SpriteBatch.createDefaultShader(SpriteBatch.java:157)
at com.badlogic.gdx.graphics.g2d.SpriteBatch.<init>(SpriteBatch.java:120)
...
Like Gouessej said, this is caused by your new OpenGL driver.
This is caused by changes in the OpenGL GLSL standard between different OpenGL versions.
We have a tutorial in the jogamp wiki how to write cross GLProfile compatible GLSL shaders:
http://jogamp.org/wiki/index.php/How_to_write_cross_GLProfile_compatible_shader_using_JOGLThe default GLSL shader used by gdx SpriteBatch needs to be updated to work with non backward compatible OpenGL 3 and 4 profiles.