Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top