[gtk/wip/baedert/for-master: 37/46] gl renderer: Don't flip when rendering to an fbo
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 37/46] gl renderer: Don't flip when rendering to an fbo
- Date: Thu, 1 Oct 2020 06:40:44 +0000 (UTC)
commit 713172c99540e713e10874ba1cd0172dccd34586
Author: Timm Bäder <mail baedert org>
Date: Tue Sep 29 19:21:49 2020 +0200
gl renderer: Don't flip when rendering to an fbo
gsk/gl/gskglrenderer.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 4cfe31535c..8e9d704232 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -4182,7 +4182,9 @@ gsk_gl_renderer_do_render (GskRenderer *renderer,
viewport->origin.y + viewport->size.height,
ORTHO_NEAR_PLANE,
ORTHO_FAR_PLANE);
- graphene_matrix_scale (&projection, 1, -1, 1);
+
+ if (fbo_id == 0) /* Our origin is in the upper left, fbos have it in the lower left */
+ graphene_matrix_scale (&projection, 1, -1, 1);
removed = g_ptr_array_new ();
gsk_gl_texture_atlases_begin_frame (self->atlases, removed);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]