Procházet zdrojové kódy

video_core/engine: Consistently initialize rasterizer pointers

Ensures all of the engines have consistent and deterministic
initialization of the rasterizer pointers.
Lioncash před 5 roky
rodič
revize
f8964dd89a

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

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

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

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