Skip to main content
gamedev.net
🔒 Locked

Render To Texture

Started by BillCruse 0 replies 550+ views
Original Post
BillCruse
BillCruse
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.
_the_phantom_
_the_phantom_
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.