views:

48

answers:

1

My renderer used to render geometry with the old fixed function stuff using glBegin/glEnd. After switching it to use vertex arrays via glVertexPointer et. al., my Cg shaders stopped showing up. If i just do a regular texture binding, it works fine, so the array data is solid. Also if I use the old glBegin/glEnd system, the Cg shaders work fine. Is there some consideration I am missing specific to vertex buffers?

+1  A: 

vertex data submission (Begin/End, regular VertexPointer+DrawArrays, VBO+DrawArrays) is supposed to be completely orthogonal to shaders (as long as you provide the data). So you're not really missing anything (especially if it works with VBO).

Your problem is likely somewhere that you don't mention.

Bahbar
Yeah it was somewhere else. Thank you for your response
toastie