Invalid Operation before loading program

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
kubatp
Gnome
Posts: 368
Joined: Tue Jan 06, 2009 1:12 pm
x 43

Invalid Operation before loading program

Post by kubatp »

Hi,
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;
}
with this declaration

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		
}
Why is this generated? Did anyone experience the same problem? It seems like this doesnt harm anything, so why is it raised? I use Ogre 1.7
Post Reply