mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
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.
This commit is contained in:
parent
a75d995bd4
commit
b192120f39
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user