From 0c39c1b146aa28c104db668d59ca396a6cdea76f Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Wed, 30 Oct 2013 23:31:42 +0100 Subject: [PATCH] Fixed bug with sf::Texture (and especially with sf::RenderTexture) on old graphics cards (#418) --- src/SFML/Graphics/Texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Graphics/Texture.cpp b/src/SFML/Graphics/Texture.cpp index 033fe0faf..3bec5d6db 100644 --- a/src/SFML/Graphics/Texture.cpp +++ b/src/SFML/Graphics/Texture.cpp @@ -470,7 +470,7 @@ void Texture::bind(const Texture* texture, CoordinateType coordinateType) if (texture->m_pixelsFlipped) { matrix[5] = -matrix[5]; - matrix[13] = static_cast(texture->m_size.y / texture->m_actualSize.y); + matrix[13] = static_cast(texture->m_size.y) / texture->m_actualSize.y; } // Load the matrix