cg error : the program could not load

Hello,

I am having problem with cg not loading my program. If anyone know the answer please help me out!

I had cg successfully load my program, bind and display.

then I created another program with the exact same .cg file. It successfully compiled it but It won’t load that second program !? ???

something like this:
init() // create first program compile and load
render() // bind and display - success
reinit() // create sceond program compile and load - could not load second program

Am I not suppose to load another program after I had binded the first program??
or is there something else that I must do?

please help me out >_<

Just a guess but do you try to load the program while you are not in the display() callback.
You can use gl commands only when init() or display() has been called. Maybe thats the problem?

  • nG