summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-12-30 20:17:01 +0100
committerGitHub <noreply@github.com>2020-12-30 20:17:01 +0100
commitdab7711524f85c824ce4cdcfb453ba5310c4dacb (patch)
tree21d7f3f935dcb7800db8390a4b08d9d33a8348ed
parentMerge pull request #5251 from ReinUsesLisp/wuninitialized (diff)
parentmaxwell_to_vk: Initialize usage variable in SurfaceFormat() (diff)
downloadyuzu-dab7711524f85c824ce4cdcfb453ba5310c4dacb.tar
yuzu-dab7711524f85c824ce4cdcfb453ba5310c4dacb.tar.gz
yuzu-dab7711524f85c824ce4cdcfb453ba5310c4dacb.tar.bz2
yuzu-dab7711524f85c824ce4cdcfb453ba5310c4dacb.tar.lz
yuzu-dab7711524f85c824ce4cdcfb453ba5310c4dacb.tar.xz
yuzu-dab7711524f85c824ce4cdcfb453ba5310c4dacb.tar.zst
yuzu-dab7711524f85c824ce4cdcfb453ba5310c4dacb.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_vulkan/maxwell_to_vk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp
index 40501e7fa..4c988429f 100644
--- a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp
+++ b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp
@@ -239,7 +239,7 @@ FormatInfo SurfaceFormat(const VKDevice& device, FormatType format_type, PixelFo
const bool attachable = tuple.usage & Attachable;
const bool storage = tuple.usage & Storage;
- VkFormatFeatureFlags usage;
+ VkFormatFeatureFlags usage{};
switch (format_type) {
case FormatType::Buffer:
usage =