i get an GL_INVALID_OPERTION after calling glLoadProgramNV. i dont know why, and i read the specs and did not understand the reason. i also couldnt find code that use this function, becuase every one uses nvparse which causes me so much trouble with its “unresolved externals” that i gave up trying to use it, at least for now.
so here is my code -
ok, i changed it to VP and it doenst do INVALID_OPERAION anymore, but i still get a black screen, i mean the quad is not drawn. how can i debug it, to see whats wrong?
ok, i changed it to VP and it doenst do INVALID_OPERAION anymore, but i still get a black screen, i mean the quad is not drawn. how can i debug it, to see whats wrong?
You do have a valid color in c[5]? This is what you’re assigning to the vertex’s output color.
If you change this line:
"MOV o[COL0], c[5];
"
to this:
"MOV o[COL0], v[COL0];
"
do things start working?
As an aside, one other thing looks a little weird. You’re passing in “strlen(Prog)” as the length of your program string, and then you’re passing in a static string as the actual program. Are you sure this will work?
I think it will as long as “strlen(Prog)” is greater than the length of the static string, but I’m sure it won’t if it’s less than the length of the static string.
why should it be less? it is the length of the string. and i do init the c[5] register, and even if im not, i use texturing, so the vertex color doesnt matter, i just wanted to fool around.