This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository direct3d.

View the commit online.

commit 45480f99f1f628fc1e8637363a96659e766ff82d
Author: Vincent Torri <vto...@outlook.fr>
AuthorDate: Fri Jun 28 06:50:50 2024 +0200

    fix u and v indices
---
 src/d3d_7.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/d3d_7.c b/src/d3d_7.c
index 4998021..4250a16 100644
--- a/src/d3d_7.c
+++ b/src/d3d_7.c
@@ -768,8 +768,8 @@ Object *texture_new(D3d *d3d,
     vertices[1].g = 0;
     vertices[1].b = 0;
     vertices[1].a = 0;
-    vertices[0].u = 1.0f;
-    vertices[0].v = 0.0f;
+    vertices[1].u = 1.0f;
+    vertices[1].v = 0.0f;
     /* vertex bottom right*/
     vertices[2].x = x + w;
     vertices[2].y = y + h;
@@ -777,8 +777,8 @@ Object *texture_new(D3d *d3d,
     vertices[2].g = 0;
     vertices[2].b = 0;
     vertices[2].a = 0;
-    vertices[0].u = 1.0f;
-    vertices[0].v = 1.0f;
+    vertices[2].u = 1.0f;
+    vertices[2].v = 1.0f;
     /* vertex bottom left*/
     vertices[3].x = x;
     vertices[3].y = y + h;
@@ -786,8 +786,8 @@ Object *texture_new(D3d *d3d,
     vertices[3].g = 0;
     vertices[3].b = 0;
     vertices[3].a = 0;
-    vertices[0].u = 0.0f;
-    vertices[0].v = 1.0f;
+    vertices[3].u = 0.0f;
+    vertices[3].v = 1.0f;
 
     /* triangle upper left */
     indices[0] = 0;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to