[gtk: 37/72] gdkgl: Remove flipping when downloading GL texture




commit 9698cd67a1ff01c8f7bf7da76bf3347b9fa0d31b
Author: Timm Bäder <mail baedert org>
Date:   Sat Oct 3 11:48:36 2020 +0200

    gdkgl: Remove flipping when downloading GL texture
    
    This fix is correct and fixes:
    
      1) GL textures being upside down in the inspector. They are getting
         downloaded because they've been created in a different GL context
      2) GL textures being upside down in the cairo renderer (same reason)
    
    However, it breaks the testsuite. We do the flipping via the projection
    matrix, but most of the shaders don't care about that.

 gdk/gdkgl.c | 4 ----
 1 file changed, 4 deletions(-)
---
diff --git a/gdk/gdkgl.c b/gdk/gdkgl.c
index 00b0272c8c..56dce18333 100644
--- a/gdk/gdkgl.c
+++ b/gdk/gdkgl.c
@@ -419,10 +419,6 @@ gdk_cairo_draw_from_gl (cairo_t              *cr,
 
   cairo_surface_mark_dirty (image);
 
-  /* Invert due to opengl having different origin */
-  cairo_scale (cr, 1, -1);
-  cairo_translate (cr, 0, -height / buffer_scale);
-
   cairo_set_source_surface (cr, image, 0, 0);
   cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
   cairo_paint (cr);


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