PDA

View Full Version : AVI texture problems



dmsy
05-12-2000, 12:09 PM
I am using Vfw.h and its functions. To get the packed DIB I do:
pPackedDib = (GLubyte *)AVIStreamGetFrame(pGetFrame, j);
tempPtr=pPackedDib;
tempPtr += sizeof(BITMAPINFOHEADER);
glTexImage2D(GL_TEXTURE_2D, 0, 3, width, height, 0, GL_BGR_EXT,GL_UNSIGNED_BYTE, tempPtr);

Of course I bind them all properly and rebind when I need to texture map... but I dont see a thing. What can be wrong?