Browse Source

maxwell_to_vk: Initialize usage variable in SurfaceFormat()

Silences a -Wmaybe-uninitialized warning
Lioncash 5 năm trước cách đây
mục cha
commit
f0d9ab0717
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/video_core/renderer_vulkan/maxwell_to_vk.cpp

+ 1 - 1
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 =