Automatically upload GLSL 1.0 shaders as GLSL 1.1 if using desktop OpenGL to allow stricter error checking.

experimental
shadowislord 11 years ago
parent 76147fc5f7
commit 68cb1e900f
  1. 4
      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();

Loading…
Cancel
Save