Lesson 35 - avi player, Texture Binding Issues

Started by
0 comments, last by ShaderMan 20 years, 5 months ago
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.
Advertisement
found bug

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

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.

This topic is closed to new replies.

Advertisement