[gtk: 1/2] gl renderer: Fix up texture cache key
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] gl renderer: Fix up texture cache key
- Date: Mon, 5 Oct 2020 14:58:21 +0000 (UTC)
commit 24a27ba44f6bb5cee2abe1eac3c5a97c8517216b
Author: Alexander Larsson <alexl redhat com>
Date: Mon Oct 5 15:19:27 2020 +0200
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.
gsk/gl/gskglrenderer.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 16a76dbff8..edf6f402ce 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]