diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-12-30 16:17:01 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-30 16:17:01 -0300 |
commit | dab7711524f85c824ce4cdcfb453ba5310c4dacb (patch) | |
tree | 21d7f3f935dcb7800db8390a4b08d9d33a8348ed /src | |
parent | da07977db0b71e52f5870e3adf8c2fa0ada3c706 (diff) | |
parent | f0d9ab0717b5148b5d3569af96333ca69bc46272 (diff) |
Merge pull request #5260 from lioncash/uninit
maxwell_to_vk: Initialize usage variable in SurfaceFormat()
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_vulkan/maxwell_to_vk.cpp | 2 |
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 40501e7fae..4c988429f1 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 = |