[gtk/wip/chergert/glproto: 225/493] fix offscreen bounds
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 225/493] fix offscreen bounds
- Date: Fri, 19 Feb 2021 02:25:11 +0000 (UTC)
commit 0d7fd2f29129128325fbdbeb9c1a4254ef5b4178
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 20 21:44:32 2021 -0800
fix offscreen bounds
uv should contain the 0..1 range from the offscreen
gsk/next/gskglrenderjob.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index 8bc345f12f..f4ad75fd8d 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -672,32 +672,32 @@ gsk_gl_render_job_load_vertices_from_offscreen (GskGLRenderJob *job,
vertices[0].position[0] = min_x;
vertices[0].position[1] = min_y;
- vertices[0].uv[0] = X1 (bounds);
+ vertices[0].uv[0] = X1 (&offscreen->area);
vertices[0].uv[1] = y1;
vertices[1].position[0] = min_x;
vertices[1].position[1] = max_y;
- vertices[1].uv[0] = X1 (bounds);
+ vertices[1].uv[0] = X1 (&offscreen->area);
vertices[1].uv[1] = y2;
vertices[2].position[0] = max_x;
vertices[2].position[1] = min_y;
- vertices[2].uv[0] = X2 (bounds);
+ vertices[2].uv[0] = X2 (&offscreen->area);
vertices[2].uv[1] = y1;
vertices[3].position[0] = max_x;
vertices[3].position[1] = max_y;
- vertices[3].uv[0] = X2 (bounds);
+ vertices[3].uv[0] = X2 (&offscreen->area);
vertices[3].uv[1] = y2;
vertices[4].position[0] = min_x;
vertices[4].position[1] = max_y;
- vertices[4].uv[0] = X1 (bounds);
+ vertices[4].uv[0] = X1 (&offscreen->area);
vertices[4].uv[1] = y2;
vertices[5].position[0] = max_x;
vertices[5].position[1] = min_y;
- vertices[5].uv[0] = X2 (bounds);
+ vertices[5].uv[0] = X2 (&offscreen->area);
vertices[5].uv[1] = y1;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]