[gtk/wip/matthiasc/opbuffer: 21/28] Fix load_vertex_data



commit b53fa48794ea3ecd5f0fa1cdc21fee3711fa038c
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 14 22:09:12 2019 -0400

    Fix load_vertex_data
    
    There was a copy-paste error that set all
    uv coordinates to 0,0.

 gsk/gl/gskglrenderer.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 6ea752561e..0660174a32 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -2721,26 +2721,26 @@ load_vertex_data (GskQuadVertex    vertex_data[GL_N_VERTICES],
   vertex_data[1].position[0] = min_x;
   vertex_data[1].position[1] = max_y;
   vertex_data[1].uv[0] = 0;
-  vertex_data[1].uv[1] = 0;
+  vertex_data[1].uv[1] = 1;
 
   vertex_data[2].position[0] = max_x;
   vertex_data[2].position[1] = min_y;
-  vertex_data[2].uv[0] = 0;
+  vertex_data[2].uv[0] = 1;
   vertex_data[2].uv[1] = 0;
 
   vertex_data[3].position[0] = max_x;
   vertex_data[3].position[1] = max_y;
-  vertex_data[3].uv[0] = 0;
-  vertex_data[3].uv[1] = 0;
+  vertex_data[3].uv[0] = 1;
+  vertex_data[3].uv[1] = 1;
 
   vertex_data[4].position[0] = min_x;
   vertex_data[4].position[1] = max_y;
   vertex_data[4].uv[0] = 0;
-  vertex_data[4].uv[1] = 0;
+  vertex_data[4].uv[1] = 1;
 
   vertex_data[5].position[0] = max_x;
   vertex_data[5].position[1] = min_y;
-  vertex_data[5].uv[0] = 0;
+  vertex_data[5].uv[0] = 1;
   vertex_data[5].uv[1] = 0;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]