From 76292f01cb38a4c14ad2318e6d4efae67a5f6a1c Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Wed, 1 Sep 2021 15:58:09 +0100 Subject: [PATCH] Fix RGB/BGR of the cursor's Vulkan image This was ABGR before, when it should be ARGB. --- src/steamcompmgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index 0058426..534d13c 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -863,7 +863,7 @@ bool MouseCursor::getTexture() // TODO: choose format & modifiers from cursor plane } - m_texture = vulkan_create_texture_from_bits(m_width, m_height, VK_FORMAT_R8G8B8A8_UNORM, texCreateFlags, cursorBuffer.data()); + m_texture = vulkan_create_texture_from_bits(m_width, m_height, VK_FORMAT_B8G8R8A8_UNORM, texCreateFlags, cursorBuffer.data()); assert(m_texture); XFree(image); m_dirty = false;