Jojendersie / Monolith

A voxel based space simulation game
16 stars 1 forks source link

Include/#line/code-prefix errors on current Intel chips. #62

Closed Wumpf closed 10 years ago

Wumpf commented 10 years ago

Report from JoJendersie:

Sat May 17 14:42:41 2014 Initialized Logger Level 0 < 00000343 ms > Created Resources Singleton Level 1 < 00000343 ms > Loaded language English Critical < 00000406 ms > [Shader Compiler|error]: GLSL compile failed for shader 1, "": ERROR: 0:? : '' : syntax error: #line ERROR: 0:1: '' : syntax error: #version is mandatory and should be set before any other token ERROR: 0:9: 'in_Position' : undeclared identifier ERROR: 0:9: 'assign' : cannot convert from 'float' to '2-component vector of float' ERROR: 0:12: 'vs_out_TexCoord' : undeclared identifier

We should also investigate if there is a possibility to validate the shader code to avoid such errors in general. Currently CI does not look that promission, however we should try tools like this http://www.opengl.org/sdk/tools/glslang/

Wumpf commented 10 years ago

Fixed. But waiting for #63 to be able to implement an optional shader validation of runtime "generated" shader.