diff options
author | Benjamin Otte <otte@redhat.com> | 2023-05-09 23:48:44 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2023-05-17 02:25:32 +0200 |
commit | a18ca838cbcbeddeacbf75bedf793e198dcfeafe (patch) | |
tree | a2f82340e7b2e8d73ed9abf9c8ddcb442b723a78 | |
parent | 15b2086a0985929b4ebf67fdeac88845b88a0c0e (diff) | |
download | gtk+-a18ca838cbcbeddeacbf75bedf793e198dcfeafe.tar.gz |
vulkan: Don't transform the viewport rect
We don't want to render the offscreen trnsformed, we want to render it
as-is.
We lose the correct scale factor, but that requires some separate work,
so for now it gets a bit blurry on hidpi.
-rw-r--r-- | gsk/vulkan/gskvulkanrenderpass.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gsk/vulkan/gskvulkanrenderpass.c b/gsk/vulkan/gskvulkanrenderpass.c index 0710222dc4..ada675c08e 100644 --- a/gsk/vulkan/gskvulkanrenderpass.c +++ b/gsk/vulkan/gskvulkanrenderpass.c @@ -1101,7 +1101,6 @@ gsk_vulkan_render_pass_get_node_as_texture (GskVulkanRenderPass *self, default: { - graphene_rect_t view; graphene_rect_t clipped; if (current_clip) @@ -1112,8 +1111,6 @@ gsk_vulkan_render_pass_get_node_as_texture (GskVulkanRenderPass *self, if (clipped.size.width == 0 || clipped.size.height == 0) return NULL; - graphene_matrix_transform_bounds (&self->mv, &clipped, &view); - /* assuming the unclipped bounds should go to texture coordinates 0..1, * calculate the coordinates for the clipped texture size */ @@ -1135,7 +1132,7 @@ gsk_vulkan_render_pass_get_node_as_texture (GskVulkanRenderPass *self, uploader, semaphore, node, - &view); + &clipped); } } |