LWJGL / lwjgl3-demos

Demo suite for LWJGL 3
BSD 3-Clause "New" or "Revised" License
351 stars 89 forks source link

error: syntax error, unexpected NEW_IDENTIFIER #57

Open ThanosFisherman opened 2 months ago

ThanosFisherman commented 2 months ago

There are several examples from opengl package such as GrassDemo among others that would crash with the following error on my arch linux machine

[LWJGL] OpenGL debug message
    ID: 0x1
    Source: SHADER COMPILER
    Type: OTHER
    Severity: HIGH
    Message: 0:6(12): warning: extension `GL_NV_non_square_matrices' unsupported in vertex shader
[LWJGL] OpenGL debug message
    ID: 0x2
    Source: SHADER COMPILER
    Type: ERROR
    Severity: HIGH
    Message: 0:28(9): error: syntax error, unexpected NEW_IDENTIFIER, expecting ',' or ';'
0:6(12): warning: extension `GL_NV_non_square_matrices' unsupported in vertex shader
0:28(9): error: syntax error, unexpected NEW_IDENTIFIER, expecting ',' or ';'

Exception in thread "main" java.lang.AssertionError: Could not compile shader
    at org.lwjgl.demo.opengl.util.DemoUtils.createShader(DemoUtils.java:164)
    at org.lwjgl.demo.opengl.util.DemoUtils.createShader(DemoUtils.java:112)
    at org.lwjgl.demo.opengl.instancing.GrassDemo.createGrassProgram(GrassDemo.java:207)
    at org.lwjgl.demo.opengl.instancing.GrassDemo.run(GrassDemo.java:138)
    at org.lwjgl.demo.opengl.instancing.GrassDemo.main(GrassDemo.java:376)