summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-09-22 18:48:36 -0400
committerMatthias Clasen <mclasen@redhat.com>2017-09-22 18:50:20 -0400
commit083167c3c1c390a4d7bc3baf21853e21025e1570 (patch)
tree605d401eab6729bd81fdfea8181e2d8ac9d056a9
parent1a7faa5e6b8a32d06311b68f39063a340d28236b (diff)
downloadgtk+-083167c3c1c390a4d7bc3baf21853e21025e1570.tar.gz
vulkan: fix a clip handling problemwip/matthiasc/pipeline-layouts
We were looking at uninitialized memory here, instead of the type of the source clip, as we should. This showed up as mispositioned clip in the first frame of a crossfade stack transition, and also as overdraw in sliding stack transitions.
-rw-r--r--gsk/gskvulkanclip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gsk/gskvulkanclip.c b/gsk/gskvulkanclip.c
index 9a3ad8696f..e7696e6abf 100644
--- a/gsk/gskvulkanclip.c
+++ b/gsk/gskvulkanclip.c
@@ -133,7 +133,7 @@ gsk_vulkan_clip_transform (GskVulkanClip *dest,
const graphene_matrix_t *transform,
const graphene_rect_t *viewport)
{
- switch (dest->type)
+ switch (src->type)
{
default:
g_assert_not_reached();