gl renderer: Fix up texture cache key

The commit e14d2be1 forgot to actually set the parent_rect in the texture
key in the case it is necessary.
This commit is contained in:
Alexander Larsson 2020-10-05 15:19:27 +02:00
parent 2b03674464
commit 24a27ba44f

View File

@ -3828,6 +3828,7 @@ add_offscreen_ops (GskGLRenderer *self,
/* Check if we've already cached the drawn texture. */
key.pointer = child_node;
key.pointer_is_child = TRUE; /* Don't conflict with the child using the cache too */
key.parent_rect = *bounds;
key.scale = ops_get_scale (builder);
key.filter = filter;
cached_id = gsk_gl_driver_get_texture_for_key (self->gl_driver, &key);