I have noticed that in the Ogre.log there is this entry "Invalid Operation before loading program" few times for different shaders. I am very surprised by that, especially because there is no ERROR and also the shaders (for which this is logged) work fine. One of them is very very simple
Code: Select all
float4 main(
float2 texturePosition : TEXCOORD0
) : COLOR
{
float4 result = float4(0.0);
result.a = saturate(texturePosition.y);
return result;
}
Code: Select all
fragment_program gradient_on_edges_ps_cg cg
{
source ps_gradient_on_edges.cg
entry_point main
profiles ps_2_0 arbfp1
}