[gtk/wip/matthiasc/opbuffer] Fix load_vertex_data



commit ab53f45a7e6f2cc468ff998ae6f94ba4c27d4f4d
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 7f36dd7e31..6592176136 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -2724,26 +2724,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]