summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2020-12-30 13:24:59 -0500
committerGravatar Lioncash2020-12-30 13:25:03 -0500
commitf0d9ab0717b5148b5d3569af96333ca69bc46272 (patch)
tree21d7f3f935dcb7800db8390a4b08d9d33a8348ed /src
parentMerge pull request #5251 from ReinUsesLisp/wuninitialized (diff)
downloadyuzu-f0d9ab0717b5148b5d3569af96333ca69bc46272.tar.gz
yuzu-f0d9ab0717b5148b5d3569af96333ca69bc46272.tar.xz
yuzu-f0d9ab0717b5148b5d3569af96333ca69bc46272.zip
maxwell_to_vk: Initialize usage variable in SurfaceFormat()
Silences a -Wmaybe-uninitialized warning
Diffstat (limited to 'src')
-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
239 const bool attachable = tuple.usage & Attachable; 239 const bool attachable = tuple.usage & Attachable;
240 const bool storage = tuple.usage & Storage; 240 const bool storage = tuple.usage & Storage;
241 241
242 VkFormatFeatureFlags usage; 242 VkFormatFeatureFlags usage{};
243 switch (format_type) { 243 switch (format_type) {
244 case FormatType::Buffer: 244 case FormatType::Buffer:
245 usage = 245 usage =