5b86f366c7
To help debugging shader compilation errors, print the shader source the way it was given to the GLSL compiler and with line numbers that match the compiler error messages. This is necessary because some snippets are added at runtime to the beginning, the source is not only what is in the respective .glsl file. I did look into using #line directives, but you cannot put source file names to it, only "source string numbers" which must be an integer expression. If we used #line, the reader would need to know that string number 0 is the version, string 1 is the config and string number 2 is fragment.glsl. I think that would have been too cumbersome. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> |
||
---|---|---|
.. | ||
egl-glue.c | ||
fragment.glsl | ||
gl-renderer-internal.h | ||
gl-renderer.c | ||
gl-renderer.h | ||
gl-shaders.c | ||
meson.build | ||
vertex.glsl |