Fix RGB/BGR of the cursor's Vulkan image

This was ABGR before, when it should be ARGB.
This commit is contained in:
Joshua Ashton 2021-09-01 15:58:09 +01:00 committed by Simon Ser
parent 39c44a9e3c
commit 76292f01cb

View file

@ -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;