fix opengl regressions

This commit is contained in:
Eduardo Bart
2012-06-02 12:54:35 -03:00
parent 1c5b906b5b
commit cde81666b8
2 changed files with 6 additions and 6 deletions

View File

@@ -271,9 +271,9 @@ void Texture::setupFilters()
void Texture::setupTranformMatrix()
{
if(m_upsideDown) {
m_transformMatrix = { 1.0f/m_glSize.width(), 0.0f, 0.0f,
0.0f, -1.0f/m_glSize.height(), 0.0f,
0.0f, 1.0f, 1.0f };
m_transformMatrix = { 1.0f/m_glSize.width(), 0.0f, 0.0f,
0.0f, -1.0f/m_glSize.height(), 0.0f,
0.0f, m_size.height()/(float)m_glSize.height(), 1.0f };
} else {
m_transformMatrix = { 1.0f/m_glSize.width(), 0.0f, 0.0f,
0.0f, 1.0f/m_glSize.height(), 0.0f,