Merge pull request #2304 from Cacodemon345/patch-75

Fix darkened rendering in Vulkan
This commit is contained in:
Miran Grča
2022-04-25 17:24:02 +02:00
committed by GitHub

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