View Full Version : Old win32 project rebuilt to target x64 : no more textures.

11-24-2014, 03:19 AM
Hello all...

First of all, be indulgent, I am not openGL trained at all. I have to rebuild an old win32 project to target x64, using MS VisualStudio 10.

This were not that much difficult regarding opengl and everything run fine like with win32, except that it does not display textures anymore. I have checked that texture data (RGB 24 bits) is correctly loaded. I have tried to put a nice grey 'by hand'. But it is always white.

Going to the code : it looks like it use gluBuild2DMipmaps wich is not popular (never use this, say the common mistake guide...) but the recommended gluGenerateMipmap is not available in the function wich use it. The key line is :

gluBuild2DMipmaps(GL_TEXTURE_2D, 3, m_Image[i].sizeX, m_Image[i].sizeY, GL_BGR_EXT, GL_UNSIGNED_BYTE, m_Image[i].data);

is any (old)trained developper have THE BIG TIP (a simple parameter i may have forgot), before i go deeper inside ?

sorry and thanks in advance...