3 Replies Latest reply: Mar 23, 2011 1:40 AM by EcIipse RSS

    I get an error on drawTriangles: How to unbind a vertex buffer?

    EcIipse Community Member

      I have two models, one has a vertex buffer with position and UV coords, the other has more infos, like normals and so on.
      If I render just one of them, ther work fine, but when I try to have both I get this error:
      Error #3607: Stream 2 is set but not used by the current vertex program.

       

      Now, I'm not new in 3D programming, I know both DirectX and OpenGL, and I know that OpenGL needs an "unbind" API call to clear the vertex streams, I cannot find anything similar in Molehill.
      So how to unset a vertex buffer and set another one?

       

      My code at the moment works only if my models uses the same number of vertex streams