Remove texcoord changes in favor of texture matrix

This commit is contained in:
Cruel
2015-08-17 13:31:16 -04:00
parent f494b17ec3
commit b9683567f4
-6
View File
@@ -244,12 +244,6 @@ void Shape::updateTexCoords()
float yratio = m_insideBounds.height > 0 ? (m_vertices[i].position.y - m_insideBounds.top) / m_insideBounds.height : 0;
m_vertices[i].texCoords.x = m_textureRect.left + m_textureRect.width * xratio;
m_vertices[i].texCoords.y = m_textureRect.top + m_textureRect.height * yratio;
#ifndef EMULATION
if (m_textureRect.width != 0)
m_vertices[i].texCoords.x /= m_textureRect.width;
if (m_textureRect.height != 0)
m_vertices[i].texCoords.y /= m_textureRect.height;
#endif
}
}