diff options
author | Benjamin Otte <otte@redhat.com> | 2018-03-18 04:48:06 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-03-18 05:57:07 +0100 |
commit | d54ca3c74f360c36810ec21ecac5d7f5065bba9f (patch) | |
tree | 23563456f2b28d747dcb8d65e7f5578d4512d16e /gsk/vulkan | |
parent | ee8e42f19bb2cf0505d74265dfb71470040b0502 (diff) | |
download | gtk+-d54ca3c74f360c36810ec21ecac5d7f5065bba9f.tar.gz |
gdk: Add GDK_MEMORY_DEFAULT
This is the default memory format.
I added it because it is way better than including a private header and
using GDK_MEMORY_CAIRO_FORMAT_ARGB32.
Diffstat (limited to 'gsk/vulkan')
-rw-r--r-- | gsk/vulkan/gskvulkanimage.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gsk/vulkan/gskvulkanimage.c b/gsk/vulkan/gskvulkanimage.c index 729d993262..03d76c2d05 100644 --- a/gsk/vulkan/gskvulkanimage.c +++ b/gsk/vulkan/gskvulkanimage.c @@ -6,8 +6,6 @@ #include "gskvulkanmemoryprivate.h" #include "gskvulkanpipelineprivate.h" -#include "gdk/gdkmemorytextureprivate.h" - #include <string.h> struct _GskVulkanUploader @@ -676,7 +674,7 @@ gsk_vulkan_image_download (GskVulkanImage *self, mem = gsk_vulkan_buffer_map (buffer); bytes = g_bytes_new (mem, self->width * self->height * 4); texture = gdk_memory_texture_new (self->width, self->height, - GDK_MEMORY_CAIRO_FORMAT_ARGB32, + GDK_MEMORY_DEFAULT, bytes, self->width * 4); gsk_vulkan_buffer_unmap (buffer); |