Re: [Mesa-dev] glsl2 compiler preprocessor regression

2010-08-10 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas Jones wrote: > 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

[Mesa-dev] glsl2 compiler preprocessor regression

2010-08-10 Thread Thomas Jones
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: