How to use multiply shaders?

I wrote a sample on iOS, use OpenGL ES 2.0, then encountered a problem about shaders.
In a simply scene, I do the following


GLuint shaderProgramA;
GLuint shaderProgramB;
......

- (void) render
{
  ......
  gluseProgram( shaderProgramA );
  // render something

  gluseProgram( shaderProgramB );
  // render something else
  ......
}

Run the sample, I found all object render at a same position:confused: Can anybody tell me what’s wrong with it?

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.