[gtk/wip/baedert/for-master: 5/6] gl renderer: Reset opacity when rendering blend node children
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 5/6] gl renderer: Reset opacity when rendering blend node children
- Date: Sun, 6 Dec 2020 19:04:44 +0000 (UTC)
commit 1ee4f6138b94189629aa7fc3ec7f534dd833c54b
Author: Timm Bäder <mail baedert org>
Date: Sun Dec 6 20:01:36 2020 +0100
gl renderer: Reset opacity when rendering blend node children
We render those on a texture, so we need to reset the opacity because
that will be applied when rendering the resulting texture.
gsk/gl/gskglrenderer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 64996ffc70..aa7ef5f10f 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -2735,7 +2735,7 @@ render_blend_node (GskGLRenderer *self,
&node->bounds,
bottom_child,
&bottom_region, &is_offscreen1,
- FORCE_OFFSCREEN | RESET_CLIP))
+ FORCE_OFFSCREEN | RESET_CLIP | RESET_OPACITY))
{
gsk_gl_renderer_add_render_ops (self, top_child, builder);
return;
@@ -2745,7 +2745,7 @@ render_blend_node (GskGLRenderer *self,
&node->bounds,
top_child,
&top_region, &is_offscreen2,
- FORCE_OFFSCREEN | RESET_CLIP))
+ FORCE_OFFSCREEN | RESET_CLIP | RESET_OPACITY))
{
load_vertex_data_with_region (ops_draw (builder, NULL),
&node->bounds,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]