Comment out BGRA channel swizzle

This commit is contained in:
baldurk
2015-10-23 12:39:55 +02:00
parent 1117c2760d
commit 6641c534ce
+4 -3
View File
@@ -688,9 +688,10 @@ bool VulkanReplay::RenderTextureInternal(TextureDisplay cfg, VkRenderPassBeginIn
0
};
// temporary hack, this should change soon, but identity channel swizzle has to match channels
if(iminfo.format == VK_FORMAT_B8G8R8A8_UNORM || iminfo.format == VK_FORMAT_B8G8R8A8_SRGB)
std::swap(viewInfo.channels.r, viewInfo.channels.b);
// Only needed on AMD - does the wrong thing on nvidia - so commented for now while AMD
// drivers aren't on 0.9.2
//if(iminfo.format == VK_FORMAT_B8G8R8A8_UNORM || iminfo.format == VK_FORMAT_B8G8R8A8_SRGB)
//std::swap(viewInfo.channels.r, viewInfo.channels.b);
VkResult vkr = ObjDisp(dev)->CreateImageView(Unwrap(dev), &viewInfo, &iminfo.view);
RDCASSERT(vkr == VK_SUCCESS);