[gtk/wip/baedert/for-master: 26/30] gdkgl: Remove flipping when downloading GL texture
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 26/30] gdkgl: Remove flipping when downloading GL texture
- Date: Fri, 9 Oct 2020 16:23:06 +0000 (UTC)
commit 19640a215971e42174017976d2108b25d148dad6
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]