diff options
| author | 2020-12-30 16:17:01 -0300 | |
|---|---|---|
| committer | 2020-12-30 16:17:01 -0300 | |
| commit | dab7711524f85c824ce4cdcfb453ba5310c4dacb (patch) | |
| tree | 21d7f3f935dcb7800db8390a4b08d9d33a8348ed /src | |
| parent | Merge pull request #5251 from ReinUsesLisp/wuninitialized (diff) | |
| parent | maxwell_to_vk: Initialize usage variable in SurfaceFormat() (diff) | |
| download | yuzu-dab7711524f85c824ce4cdcfb453ba5310c4dacb.tar.gz yuzu-dab7711524f85c824ce4cdcfb453ba5310c4dacb.tar.xz yuzu-dab7711524f85c824ce4cdcfb453ba5310c4dacb.zip | |
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 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 = |