diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-04-23 01:14:35 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-04-23 22:34:16 +0200 |
commit | f665c921144264ba2ed0fef37d9db28d552a5511 (patch) | |
tree | 27004ef3a0f66ded1364e916822174f57d3b7616 /src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | |
parent | Merge pull request #3768 from H27CK/cmd-title-fmt (diff) | |
download | yuzu-f665c921144264ba2ed0fef37d9db28d552a5511.tar yuzu-f665c921144264ba2ed0fef37d9db28d552a5511.tar.gz yuzu-f665c921144264ba2ed0fef37d9db28d552a5511.tar.bz2 yuzu-f665c921144264ba2ed0fef37d9db28d552a5511.tar.lz yuzu-f665c921144264ba2ed0fef37d9db28d552a5511.tar.xz yuzu-f665c921144264ba2ed0fef37d9db28d552a5511.tar.zst yuzu-f665c921144264ba2ed0fef37d9db28d552a5511.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp index 8332b42aa..45bd1fc6c 100644 --- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp +++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp @@ -288,7 +288,7 @@ vk::Pipeline VKGraphicsPipeline::CreatePipeline(const RenderPassParams& renderpa depth_stencil_ci.maxDepthBounds = 0.0f; std::array<VkPipelineColorBlendAttachmentState, Maxwell::NumRenderTargets> cb_attachments; - const std::size_t num_attachments = renderpass_params.color_attachments.size(); + const auto num_attachments = static_cast<std::size_t>(renderpass_params.num_color_attachments); for (std::size_t index = 0; index < num_attachments; ++index) { static constexpr std::array COMPONENT_TABLE = { VK_COLOR_COMPONENT_R_BIT, VK_COLOR_COMPONENT_G_BIT, VK_COLOR_COMPONENT_B_BIT, |