[gtk/wip/chergert/glproto] fix flip based on offscreen



commit 01a8f8af19cc280db70451cb3ac0f8954cf2b504
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jan 11 20:02:20 2021 -0800

    fix flip based on offscreen

 gsk/next/gskglrenderjob.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index db3258b5bf..5ffc24ee14 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -120,7 +120,6 @@ typedef struct _GskGLRenderOffscreen
   guint reset_clip : 1;
   guint do_not_cache : 1;
   guint linear_filter : 1;
-  guint flip_y : 1;
   guint was_offscreen : 1;
 } GskGLRenderOffscreen;
 
@@ -647,8 +646,8 @@ gsk_gl_render_job_load_vertices_from_offscreen (GskGLRenderJob             *job,
   float min_y = job->offset_y + bounds->origin.y;
   float max_x = min_x + bounds->size.width;
   float max_y = min_y + bounds->size.height;
-  float y1 = offscreen->flip_y ? Y2 (&offscreen->area) : Y1 (&offscreen->area);
-  float y2 = offscreen->flip_y ? Y1 (&offscreen->area) : Y2 (&offscreen->area);
+  float y1 = offscreen->was_offscreen ? Y2 (&offscreen->area) : Y1 (&offscreen->area);
+  float y2 = offscreen->was_offscreen ? Y1 (&offscreen->area) : Y2 (&offscreen->area);
 
   vertices[0].position[0] = min_x;
   vertices[0].position[1] = min_y;


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