Просмотр исходного кода

Merge pull request #6748 from lioncash/engine-init

video_core/engine: Consistently initialize rasterizer pointers
Rodrigo Locatti 5 лет назад
Родитель
Сommit
ab206d6378
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/video_core/engines/fermi_2d.h
  2. 1 1
      src/video_core/engines/maxwell_dma.h

+ 1 - 1
src/video_core/engines/fermi_2d.h

@@ -299,7 +299,7 @@ public:
     };
 
 private:
-    VideoCore::RasterizerInterface* rasterizer;
+    VideoCore::RasterizerInterface* rasterizer = nullptr;
 
     /// Performs the copy from the source surface to the destination surface as configured in the
     /// registers.

+ 1 - 1
src/video_core/engines/maxwell_dma.h

@@ -227,7 +227,7 @@ private:
     Core::System& system;
 
     MemoryManager& memory_manager;
-    VideoCore::RasterizerInterface* rasterizer;
+    VideoCore::RasterizerInterface* rasterizer = nullptr;
 
     std::vector<u8> read_buffer;
     std::vector<u8> write_buffer;