Hi guys.

So I am fighting with the textures... and I don't get one thing.
In Nate's Robin OpenGL texture tutorial, the texture coordinates coresponding like this:

(0,0) Bottom Left of the texture
(1,0) Bottom Right of the texture
(1,1) Top Right of the texture
(0,1) Top Left of the texture

But if I try to set up texture coordinates in my project, the texture is rotated 180 degrees.

Take a look at the screenshot:



And the texture itself (sorry for the small size, it is 16x16 px):



And the code:

Code:
    glClear(GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT);
    glDisable(GL_TEXTURE_2D);
    glLoadIdentity;
    gluLookAt(0, 5, 5, 0, 0, 0, 0, 1, 0);  

    glEnable(GL_TEXTURE_2D);
    glBindTexture(GL_TEXTURE_2D, SmallTex);
    glBegin(GL_QUADS);
    glTexCoord2f(0,0);  glVertex3f(0, 0, 0);
    glTexCoord2f(1,0);   glVertex3f(1, 0, 0);
    glTexCoord2f(1,1);   glVertex3f(1, 1, 0);
    glTexCoord2f(0,1);   glVertex3f(0, 1, 0);
    glEnd;
    glDisable(GL_TEXTURE_2D); 
    SDL_GL_SWAPBUFFERS;


I've double checked the coordinates of my quad. I am not doing any rotations.

I am using: LoadGLTextureFromFile('SmallTex.png'); from Vampyre Imaging Library to load the texture. But it is hard for me to belive that this function is messing with the texture...

So what is wrong guys?


Thanks for your time.