SolidColor chader error

I get this strange error with this particular shader (it only happens in new revisions):

4.1.2011 11:21:50 com.jme3.renderer.lwjgl.LwjglRenderer updateShaderSourceData

WARNING: Common/MatDefs/Misc/SolidColor.vert compile error: Vertex shader failed to compile with the following errors:

ERROR: 0:1: ‘’ : Version number not supported by GL2

ERROR: compilation errors. No code generated.

4.1.2011 11:21:50 com.jme3.renderer.lwjgl.LwjglRenderer updateShaderSourceData

WARNING: uniform mat4 g_WorldViewProjectionMatrix;

attribute vec3 inPosition;

void main(){

gl_Position = g_WorldViewProjectionMatrix * vec4(inPosition, 1.0);


4.1.2011 11:21:50 handleError

SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,6,main]

java.lang.IllegalStateException: Cannot render mesh without shader bound

at com.jme3.renderer.lwjgl.LwjglRenderer.setVertexAttrib(

at com.jme3.renderer.lwjgl.LwjglRenderer.setVertexAttrib(

at com.jme3.renderer.lwjgl.LwjglRenderer.renderMeshDefault(

at com.jme3.renderer.lwjgl.LwjglRenderer.renderMesh(

at com.jme3.material.Material.render(

at com.jme3.renderer.RenderManager.renderGeometry(

at com.jme3.renderer.queue.RenderQueue.renderGeometryList(

at com.jme3.renderer.queue.RenderQueue.renderQueue(

at com.jme3.renderer.RenderManager.renderViewPortQueues(

at com.jme3.renderer.RenderManager.flushQueue(

at com.jme3.renderer.RenderManager.renderViewPort(

at com.jme3.renderer.RenderManager.render(


at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(

at com.jme3.system.lwjgl.LwjglCanvas.runLoop(


at Source)

1 Like

Probably it doesn’t like “#version 100” being printed at the top of the shader …

There should be a check for it in LwjglRenderer, so it doesn’t put it there if it isn’t needed

Any suggestion how to correct this? :confused:

yes! update to last SVN it’s fixed :wink:

1 Like

Well thank you, lightning fast! :smiley: