Jump to content
  • Advertisement
Sign in to follow this  
BillCruse

Render To Texture

This topic is 4968 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!