diff --git a/src/cpp3ds/Graphics/Shape.cpp b/src/cpp3ds/Graphics/Shape.cpp index 7da329d..acae8ff 100644 --- a/src/cpp3ds/Graphics/Shape.cpp +++ b/src/cpp3ds/Graphics/Shape.cpp @@ -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 } }