Przeglądaj źródła

Merge pull request #6749 from lioncash/rtarget

render_target: Add missing initializer for size extent
bunnei 5 lat temu
rodzic
commit
92887a65f0
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      src/video_core/texture_cache/render_targets.h

+ 3 - 3
src/video_core/texture_cache/render_targets.h

@@ -24,10 +24,10 @@ struct RenderTargets {
         return std::ranges::any_of(color_buffer_ids, contains) || contains(depth_buffer_id);
         return std::ranges::any_of(color_buffer_ids, contains) || contains(depth_buffer_id);
     }
     }
 
 
-    std::array<ImageViewId, NUM_RT> color_buffer_ids;
-    ImageViewId depth_buffer_id;
+    std::array<ImageViewId, NUM_RT> color_buffer_ids{};
+    ImageViewId depth_buffer_id{};
     std::array<u8, NUM_RT> draw_buffers{};
     std::array<u8, NUM_RT> draw_buffers{};
-    Extent2D size;
+    Extent2D size{};
 };
 };
 
 
 } // namespace VideoCommon
 } // namespace VideoCommon