Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Lesson 35 - avi player, Texture Binding Issues

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

Hi I''m currently having binding issues with textures in openGL, using Lesson 35 "playing avi files in OpenGL" I''m finding if i don''t bind the texture i''m loading the new frame from the avi file ok. However it writes over other textures in my scene. Also if i try to bind these textures my app crashes. Just wondering if anyone has had similar behaviour. Otherwise does anyone know of a good online resource regarding best practice for using openGL textures eg when to enable/disable/bond etc .. wihout getting into trouble. Cheers.

Share this post

Link to post
Share on other sites
found bug

i wasn''t generating a name for a new video texture,

glGenTextures(1, &texture);

The Lesson doesn''t do this.

So i''m guessing if you don''t generate this name
openGL by defualt writes over all textures of the same type
or atleast that was the behaviour i was getting.

Share this post

Link to post
Share on other sites

  • 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!