[gtk+] vulkan: Fix blendmode coordinate handling



commit 4d7b8f5a6630fe86f5b4c9fd7b00d9fef66c9b9f
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Oct 8 09:00:56 2017 -0400

    vulkan: Fix blendmode coordinate handling
    
    We were node handling coordinates correctly when dealing
    with differently sized child nodes in a blendmode node.
    This was showing up in the gtk4-demo css blendmode example,
    for blendmodes other than normal.

 gsk/gskvulkanrenderpass.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/gskvulkanrenderpass.c b/gsk/gskvulkanrenderpass.c
index 90c3808..dc1a88d 100644
--- a/gsk/gskvulkanrenderpass.c
+++ b/gsk/gskvulkanrenderpass.c
@@ -1036,14 +1036,14 @@ gsk_vulkan_render_pass_upload (GskVulkanRenderPass  *self,
                                                                             render,
                                                                             uploader,
                                                                             top,
-                                                                            &top->bounds,
+                                                                            &op->render.node->bounds,
                                                                             clip,
                                                                             &op->render.source_rect);
             op->render.source2 = gsk_vulkan_render_pass_get_node_as_texture (self,
                                                                              render,
                                                                              uploader,
                                                                              bottom,
-                                                                             &bottom->bounds,
+                                                                             &op->render.node->bounds,
                                                                              clip,
                                                                              &op->render.source2_rect);
           }


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