Jump to content
  • Advertisement
Sign in to follow this  
dpadam450

ClientActive and TexCoordPointer (solved)

This topic is 3314 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

Below is my case. Once I bind the 2nd set of multi texture coordinates, the first ones are all 0. The 2nd set does still work though. I have NO idea what this could be. Do I typically need to do glActiveTexture/ glEnable, glBind? I have no idea why it would screw up the data before it. glClientActiveTexture(GL_TEXTURE1); glTexCoordPointer(4, GL_FLOAT, 0, (void*)(sizeof(GL_FLOAT)*3*3*2*duplicated_number_verts)); glClientActiveTexture(GL_TEXTURE2); glTexCoordPointer(4, GL_FLOAT, 0, (void*)(sizeof(GL_FLOAT)*3*3*2*4*duplicated_number_verts)); *Solution* Client States are per-texture unit. glClientActiveTexture(GL_TEXTURE1); glEnableClientState(GL_TEXTURE_COORD_ARRAY); glTexCoordPointer(4, GL_FLOAT, 0, (void*)(sizeof(GL_FLOAT)*3*3*2*duplicated_number_verts)); glClientActiveTexture(GL_TEXTURE2); glEnableClientState(GL_TEXTURE_COORD_ARRAY); glTexCoordPointer(4, GL_FLOAT, 0, (void*)(sizeof(GL_FLOAT)*3*3*2*4*duplicated_number_verts)); [Edited by - dpadam450 on June 23, 2009 3:01:20 AM]

Share this post


Link to post
Share on other sites
Advertisement
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!