mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 14:03:26 +02:00
fix opengl regressions
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user