[Mesa-dev] glsl2 compiler preprocessor regression

Thomas Jones thomas.jones at utoronto.ca
Tue Aug 10 07:58:11 PDT 2010


I have a shader that fails to pre-process on the new compiler, but
does compile on the old one, I've reduced it to this:

#ifdef FOO
#if FOO == 4
#elif SAMP == 5
#endif
#endif
void main()  { gl_FragData[0] = vec4(0);}

I think it might be mis-nesting the #elif since it succeeds if I
change it to:

#ifdef FOO
#if FOO == 4
#endif
#endif
void main()  { gl_FragData[0] = vec4(0);}



More information about the mesa-dev mailing list