On Mon, Jan 27, 2014 at 3:14 PM, Ian Romanick <i...@freedesktop.org> wrote: > On 01/26/2014 07:14 PM, Matt Turner wrote: >> The check was in the wrong place, such that if a shader incorrectly put >> a preprocessor token before the #version declaration, the version would >> be resolved twice, leading to a segmentation fault when attempting to >> redefine the __VERSION__ macro. >> >> #define GL_ARB_sample_shading >> #version 130 >> void main() {} > > This is an invalid shader. Segfaulting is bad, and fixing it is good. > Is the compile error still generated?
Yeah, after fixing #define GL... -> #extension GL_... : require: > Failed to compile fragment shader version.frag: 0:2(1): error: syntax error, > unexpected VERSION_TOK _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev