summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-04-23 01:14:35 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-04-23 22:34:16 +0200
commitf665c921144264ba2ed0fef37d9db28d552a5511 (patch)
tree27004ef3a0f66ded1364e916822174f57d3b7616 /src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
parentMerge pull request #3768 from H27CK/cmd-title-fmt (diff)
downloadyuzu-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 '')
-rw-r--r--src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp2
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,