Handle Y inverting properly with normalized coordinates.

svn path=/trunk/KDE/kdebase/workspace/; revision=904306
This commit is contained in:
Luboš Luňák 2009-01-01 21:12:34 +00:00
parent 5df75b84a4
commit 31e4e950b6

View file

@ -546,7 +546,7 @@ void GLTexture::enableNormalizedTexCoords()
// Modify texture matrix so that we could always use non-opengl
// coordinates for textures
glScalef( 1, -1, 1 );
glTranslatef( 0, -mSize.height(), 0 );
glTranslatef( 0, -1, 0 );
}
glMatrixMode( GL_MODELVIEW );
}