Merge pull request #402 from Koerty/fix-image-flipY

Fix ImageComponent flipY
This commit is contained in:
Jools Wills 2018-04-01 16:45:25 +01:00 committed by GitHub
commit 6878aad784
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -223,7 +223,7 @@ void ImageComponent::updateVertices()
}
if(mFlipY)
{
for(int i = 1; i < 6; i++)
for(int i = 0; i < 6; i++)
mVertices[i].tex[1] = mVertices[i].tex[1] == py ? 0 : py;
}
}