• Advertisement
Sign in to follow this  

Render To Texture

This topic is 4794 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

When i render scene on Pbuffer,the glDrawElements(ARB_vertex_buffer_object) always return GL_INVALID_OPERATION. (I don't call it between glBegin and glEnd). if i don't render scene on Pbuffer or use "glBegin and glEnd" render scene,it is no problem. I don't know what is error and How to solve it.

Share this post


Link to post
Share on other sites
Advertisement
does the VBO you want to render from exist in the pbuffers context?
You can do this either by creating and filling the VBO with the pbuffer bound or by shareing the data between the main context and the pbuffer (after its been loaded into the main context of course) via wglSharelist on Win32 and I dare say a glx method exists as well

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement