Fix load_vertex_data
authorMatthias Clasen <mclasen@redhat.com>
Tue, 15 Oct 2019 02:09:12 +0000 (22:09 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 15 Oct 2019 23:44:26 +0000 (19:44 -0400)
There was a copy-paste error that set all
uv coordinates to 0,0.

gsk/gl/gskglrenderer.c

index 6ea752561ec02bef51c033ebf3e1629b69fa761d..0660174a32566fadb6d207ff42075ea5a676b196 100644 (file)
@@ -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;
 }