소스 검색

Merge pull request #5260 from lioncash/uninit

maxwell_to_vk: Initialize usage variable in SurfaceFormat()
Rodrigo Locatti 5 년 전
부모
커밋
dab7711524
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 =