[gtk/wip/chergert/opbuffer] Fix load_vertex_data
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/opbuffer] Fix load_vertex_data
- Date: Tue, 15 Oct 2019 02:23:13 +0000 (UTC)
commit 96c9b2e9efbf6097c5b0d77785c7c1ecd29754db
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]