diff options
author | Timm Bäder <mail@baedert.org> | 2018-12-02 09:41:13 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2018-12-02 13:25:43 +0100 |
commit | 71512cf9ad56e567b50f4ff43ce57bc1a47ec4c4 (patch) | |
tree | 22fe585c565d7683f1b0c3dd31532fd12f953a73 | |
parent | 79cc8fb261472a0eb738306f95dd0128b8ca46fe (diff) | |
download | gtk+-71512cf9ad56e567b50f4ff43ce57bc1a47ec4c4.tar.gz |
gl renderer: Move geometry calculation further down
We don't need it above, so move it to where it belongs.
-rw-r--r-- | gsk/gl/gskglrenderer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c index 40b601fe90..81453b421a 100644 --- a/gsk/gl/gskglrenderer.c +++ b/gsk/gl/gskglrenderer.c @@ -1515,11 +1515,6 @@ render_shadow_node (GskGLRenderer *self, g_assert (shadow->radius <= 0); - min_x = shadow_child->bounds.origin.x; - min_y = shadow_child->bounds.origin.y; - max_x = min_x + shadow_child->bounds.size.width; - max_y = min_y + shadow_child->bounds.size.height; - if (gsk_render_node_get_node_type (shadow_child) == GSK_TEXT_NODE) { ops_offset (builder, dx, dy); @@ -1528,6 +1523,11 @@ render_shadow_node (GskGLRenderer *self, continue; } + min_x = shadow_child->bounds.origin.x; + min_y = shadow_child->bounds.origin.y; + max_x = min_x + shadow_child->bounds.size.width; + max_y = min_y + shadow_child->bounds.size.height; + /* Draw the child offscreen, without the offset. */ add_offscreen_ops (self, builder, &shadow_child->bounds, |