diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2017-01-02 12:29:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-02 12:29:36 +0100 |
| commit | 96314a0ec1ebe0fecca61dcd1dac3ddb1bcca78c (patch) | |
| tree | 57247be7170ecc844ac1f08edc0053c2e2171e6a /Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp | |
| parent | b46dcc7768381d1b07570f5b1438a6dd815bc7ed (diff) | |
| parent | e6249619a0262a0da5827e0c6d26f63fbfcad156 (diff) | |
Merge pull request #4574 from stenzek/vulkan-alpha-clear
Vulkan: Clear alpha channel to 0 when pixel format has no alpha channel
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp b/Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp index e102be287a..f5c0e038f6 100644 --- a/Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp +++ b/Source/Core/VideoBackends/Vulkan/FramebufferManager.cpp @@ -333,7 +333,7 @@ bool FramebufferManager::CreateEFBFramebuffer() VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL); // Clear the contents of the buffers. - static const VkClearColorValue clear_color = {{0.0f, 0.0f, 0.0f, 1.0f}}; + static const VkClearColorValue clear_color = {{0.0f, 0.0f, 0.0f, 0.0f}}; static const VkClearDepthStencilValue clear_depth = {0.0f, 0}; VkImageSubresourceRange clear_color_range = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, m_efb_layers}; VkImageSubresourceRange clear_depth_range = {VK_IMAGE_ASPECT_DEPTH_BIT, 0, 1, 0, m_efb_layers}; |
