Browse Source

Merge pull request #5149 from comex/xx-map-interval

map_interval: Change field order to address uninitialized field warning
bunnei 5 năm trước cách đây
mục cha
commit
5cd051eced
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/video_core/buffer_cache/map_interval.h

+ 2 - 1
src/video_core/buffer_cache/map_interval.h

@@ -84,9 +84,10 @@ private:
     void FillFreeList(Chunk& chunk);
 
     std::vector<MapInterval*> free_list;
-    std::unique_ptr<Chunk>* new_chunk = &first_chunk.next;
 
     Chunk first_chunk;
+
+    std::unique_ptr<Chunk>* new_chunk = &first_chunk.next;
 };
 
 } // namespace VideoCommon