diff --git a/Quik/VertexGenerator/VertexCommandEngine.cs b/Quik/VertexGenerator/VertexCommandEngine.cs index 59a5bc6..9b9333c 100644 --- a/Quik/VertexGenerator/VertexCommandEngine.cs +++ b/Quik/VertexGenerator/VertexCommandEngine.cs @@ -1050,20 +1050,20 @@ namespace Quik.VertexGenerator DrawQueue.RestoreOffset(); QuikVertex vertex = ImageVertex; - vertex.Position = new QVec2(rect.Top, rect.Left); - vertex.TextureCoordinates = new QVec2(uvs.Top, uvs.Left); + vertex.Position = new QVec2(rect.Left, rect.Top); + vertex.TextureCoordinates = new QVec2(uvs.Left, uvs.Top); DrawQueue.AddVertex(vertex); - vertex.Position = new QVec2(rect.Bottom, rect.Left); - vertex.TextureCoordinates = new QVec2(uvs.Bottom, uvs.Left); + vertex.Position = new QVec2(rect.Left, rect.Bottom); + vertex.TextureCoordinates = new QVec2(uvs.Left, uvs.Bottom); DrawQueue.AddVertex(vertex); - vertex.Position = new QVec2(rect.Bottom, rect.Right); - vertex.TextureCoordinates = new QVec2(uvs.Bottom, uvs.Right); + vertex.Position = new QVec2(rect.Right, rect.Bottom); + vertex.TextureCoordinates = new QVec2(uvs.Right, uvs.Bottom); DrawQueue.AddVertex(vertex); - vertex.Position = new QVec2(rect.Top, rect.Right); - vertex.TextureCoordinates = new QVec2(uvs.Top, uvs.Right); + vertex.Position = new QVec2(rect.Right, rect.Top); + vertex.TextureCoordinates = new QVec2(uvs.Right, uvs.Right); DrawQueue.AddVertex(vertex); DrawQueue.AddElement(0); DrawQueue.AddElement(2); DrawQueue.AddElement(3);