diff options
author | Lioncash <mathew1800@gmail.com> | 2020-07-17 00:13:42 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-07-17 00:13:49 +0200 |
commit | fb563e75e936c5413cf938717c0b194fdeee98d9 (patch) | |
tree | cec1dfa9f9b837669558d16e4d503c18d4d7c1d2 /src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | |
parent | Merge pull request #4327 from lioncash/desig2 (diff) | |
download | yuzu-fb563e75e936c5413cf938717c0b194fdeee98d9.tar yuzu-fb563e75e936c5413cf938717c0b194fdeee98d9.tar.gz yuzu-fb563e75e936c5413cf938717c0b194fdeee98d9.tar.bz2 yuzu-fb563e75e936c5413cf938717c0b194fdeee98d9.tar.lz yuzu-fb563e75e936c5413cf938717c0b194fdeee98d9.tar.xz yuzu-fb563e75e936c5413cf938717c0b194fdeee98d9.tar.zst yuzu-fb563e75e936c5413cf938717c0b194fdeee98d9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp index 2cc3c1c1a..aaf930b90 100644 --- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp +++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp @@ -307,8 +307,10 @@ vk::Pipeline VKGraphicsPipeline::CreatePipeline(const RenderPassParams& renderpa .sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO, .pNext = nullptr, .flags = 0, - .depthClampEnable = state.depth_clamp_disabled == 0 ? VK_TRUE : VK_FALSE, - .rasterizerDiscardEnable = state.rasterize_enable == 0 ? VK_TRUE : VK_FALSE, + .depthClampEnable = + static_cast<VkBool32>(state.depth_clamp_disabled == 0 ? VK_TRUE : VK_FALSE), + .rasterizerDiscardEnable = + static_cast<VkBool32>(state.rasterize_enable == 0 ? VK_TRUE : VK_FALSE), .polygonMode = VK_POLYGON_MODE_FILL, .cullMode = dynamic.cull_enable ? MaxwellToVK::CullFace(dynamic.CullFace()) : VK_CULL_MODE_NONE, |