[gtk+/wip/matthiasc/pipeline-layouts] vulkan: fix a clip handling problem



commit 083167c3c1c390a4d7bc3baf21853e21025e1570
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Sep 22 18:48:36 2017 -0400

    vulkan: fix a clip handling problem
    
    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.

 gsk/gskvulkanclip.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gsk/gskvulkanclip.c b/gsk/gskvulkanclip.c
index 9a3ad86..e7696e6 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();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]