Minor optimizations to love.graphics.draw(texture).

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2016-12-28 01:24:21 -04:00
parent a6a7f03b3a
commit 19aee7e75c
4 changed files with 17 additions and 13 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ void Texture::drawq(Graphics *gfx, Quad *quad, const Matrix4 &m)
void Texture::drawv(Graphics *gfx, const Matrix4 &localTransform, const Vertex *v)
{
Matrix4 t = gfx->getTransform() * localTransform;
Matrix4 t(gfx->getTransform(), localTransform);
Vertex verts[4] = {v[0], v[1], v[2], v[3]};
t.transform(verts, v, 4);