Fixed bug with sf::Texture (and especially with sf::RenderTexture) on old graphics cards (#418)

This commit is contained in:
Laurent Gomila 2013-10-30 23:31:42 +01:00
parent 56c2eb8cea
commit 0c39c1b146

View File

@ -470,7 +470,7 @@ void Texture::bind(const Texture* texture, CoordinateType coordinateType)
if (texture->m_pixelsFlipped) if (texture->m_pixelsFlipped)
{ {
matrix[5] = -matrix[5]; matrix[5] = -matrix[5];
matrix[13] = static_cast<float>(texture->m_size.y / texture->m_actualSize.y); matrix[13] = static_cast<float>(texture->m_size.y) / texture->m_actualSize.y;
} }
// Load the matrix // Load the matrix