diff --git a/jme3-lwjgl/src/main/java/com/jme3/renderer/lwjgl/LwjglRenderer.java b/jme3-lwjgl/src/main/java/com/jme3/renderer/lwjgl/LwjglRenderer.java index b1c2df7ce..100a07201 100644 --- a/jme3-lwjgl/src/main/java/com/jme3/renderer/lwjgl/LwjglRenderer.java +++ b/jme3-lwjgl/src/main/java/com/jme3/renderer/lwjgl/LwjglRenderer.java @@ -986,6 +986,10 @@ public class LwjglRenderer implements Renderer { stringBuf.append(" core"); } stringBuf.append("\n"); + } else { + // version 100 does not exist in desktop GLSL. + // put version 110 in that case to enable strict checking + stringBuf.append("#version 110\n"); } } updateNameBuffer();