mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
gl renderer: Remove useless ops_offset calls
We add the shadow offset manually.
This commit is contained in:
parent
06c0a3d02c
commit
dc7bf31b6e
@ -1818,7 +1818,6 @@ render_shadow_node (GskGLRenderer *self,
|
||||
shadow_child, &texture_id, &is_offscreen,
|
||||
RESET_CLIP | RESET_OPACITY);
|
||||
|
||||
ops_offset (builder, dx, dy);
|
||||
ops_set_program (builder, &self->coloring_program);
|
||||
ops_set_color (builder, &shadow->color);
|
||||
ops_set_texture (builder, texture_id);
|
||||
@ -1850,8 +1849,6 @@ render_shadow_node (GskGLRenderer *self,
|
||||
|
||||
ops_draw (builder, onscreen_vertex_data);
|
||||
}
|
||||
|
||||
ops_offset (builder, - dx, - dy);
|
||||
}
|
||||
|
||||
/* Now draw the child normally */
|
||||
|
Loading…
Reference in New Issue
Block a user