mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fixed bug with sf::Texture (and especially with sf::RenderTexture) on old graphics cards (#418)
This commit is contained in:
parent
56c2eb8cea
commit
0c39c1b146
@ -470,7 +470,7 @@ void Texture::bind(const Texture* texture, CoordinateType coordinateType)
|
||||
if (texture->m_pixelsFlipped)
|
||||
{
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user