Fix darkened rendering in Vulkan

This commit is contained in:
Cacodemon345 2022-04-25 21:13:41 +06:00 committed by GitHub
parent 762a5f1de9
commit a559684e7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,7 +101,7 @@ bool VulkanRenderer2::createTexture()
QVulkanFunctions *f = m_window->vulkanInstance()->functions();
VkDevice dev = m_window->device();
m_texFormat = VK_FORMAT_B8G8R8A8_SRGB;
m_texFormat = VK_FORMAT_B8G8R8A8_UNORM;
// Now we can either map and copy the image data directly, or have to go
// through a staging buffer to copy and convert into the internal optimal