As I tried to load my textures into the OpenGL framework lataly I came across something very strange.
When I created the Texture using gluBuild2DMipmaps everything worked just fine. When used glTexImage2D instead no texture appeared at all.
These are the function calls:
gluBuild2DMipmaps(GL_TEXTURE_2D, 3, ImageData->sizeX, ImageData->sizeY, GL_RGB, GL_UNSIGNED_BYTE, ImageData->data);
glTexImage2D(GL_TEXTURE_2D, 0, 3, ImageData->sizeX, ImageData->sizeY, 0, GL_RGB, GL_UNSIGNED_BYTE, ImageData->data);
They should be ok as they are…
The ImageData Object is of type ‘AUX_RGBImageRec *’.
What does Build2DMipmaps do more than TexImage2D (besides creating Mip Map Sub Textures of course)?
Has anybody experienced similar problems.
Any help would be apreciated.
Thanks in advance