summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-01-25 01:41:29 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-01-25 01:41:29 +0100
commit9dc4a80b178fe6448ee361bc8f8bf027154e4d0e (patch)
tree06fe5a512f7232e604ac944eb4d2763483337532 /src
parentMerge pull request #5807 from ReinUsesLisp/vc-warnings (diff)
downloadyuzu-9dc4a80b178fe6448ee361bc8f8bf027154e4d0e.tar
yuzu-9dc4a80b178fe6448ee361bc8f8bf027154e4d0e.tar.gz
yuzu-9dc4a80b178fe6448ee361bc8f8bf027154e4d0e.tar.bz2
yuzu-9dc4a80b178fe6448ee361bc8f8bf027154e4d0e.tar.lz
yuzu-9dc4a80b178fe6448ee361bc8f8bf027154e4d0e.tar.xz
yuzu-9dc4a80b178fe6448ee361bc8f8bf027154e4d0e.tar.zst
yuzu-9dc4a80b178fe6448ee361bc8f8bf027154e4d0e.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp4
1 files changed, 2 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 485cb43f2..d50dca604 100644
--- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
+++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
@@ -327,8 +327,8 @@ vk::Pipeline VKGraphicsPipeline::CreatePipeline(const SPIRVProgram& program,
.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,
+ .cullMode = static_cast<VkCullModeFlags>(
+ dynamic.cull_enable ? MaxwellToVK::CullFace(dynamic.CullFace()) : VK_CULL_MODE_NONE),
.frontFace = MaxwellToVK::FrontFace(dynamic.FrontFace()),
.depthBiasEnable = state.depth_bias_enable,
.depthBiasConstantFactor = 0.0f,