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