mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
gl renderer: Reset opacity when rendering to a texture
The opacity will already be applied when rendering the final texture.
This commit is contained in:
parent
b19926c079
commit
0681c5d5bc
@ -2390,6 +2390,7 @@ add_offscreen_ops (GskGLRenderer *self,
|
||||
graphene_rect_t prev_viewport;
|
||||
graphene_matrix_t item_proj;
|
||||
GskRoundedRect prev_clip;
|
||||
float prev_opacity;
|
||||
int texture_id = 0;
|
||||
|
||||
/* We need the child node as a texture. If it already is one, we don't need to draw
|
||||
@ -2455,9 +2456,11 @@ add_offscreen_ops (GskGLRenderer *self,
|
||||
|
||||
builder->dx = 0;
|
||||
builder->dy = 0;
|
||||
prev_opacity = ops_set_opacity (builder, 1.0);
|
||||
|
||||
gsk_gl_renderer_add_render_ops (self, child_node, builder);
|
||||
|
||||
ops_set_opacity (builder, prev_opacity);
|
||||
builder->dx = dx;
|
||||
builder->dy = dy;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user