https://bugs.freedesktop.org/show_bug.cgi?id=31827
--- Comment #12 from Hicham HAOUARI hicham.haouari@gmail.com 2010-11-24 11:05:53 PST --- (In reply to comment #11)
The if statement in the fragment shader is too complex. Could you possibly move the texture lookup in front of it and see if it helps?
modifying : ****************************************************************************** if(gl_Color.x==1.0 && texture2D(g_tex2,gl_TexCoord[1].xy).a==0.0) discard; ******************************************************************************
to : ****************************************************************************** bool res = ( gl_Color.x==1.0 && texture2D(g_tex2,gl_TexCoord[1].xy).a==0.0 ); if(res) discard; ******************************************************************************
gives the same error message