From 2665457f4ab3562525543f8e474bfb93ce3416ad Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 3 Aug 2018 13:56:33 -0400 Subject: renderer_base: Make Rasterizer() return the rasterizer by reference All calling code assumes that the rasterizer will be in a valid state, which is a totally fine assumption. The only way the rasterizer wouldn't be is if initialization is done incorrectly or fails, which is checked against in System::Init(). --- src/core/core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/core.cpp') diff --git a/src/core/core.cpp b/src/core/core.cpp index 29222baba..1045d8089 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -187,7 +187,7 @@ System::ResultStatus System::Init(EmuWindow& emu_window) { return ResultStatus::ErrorVideoCore; } - gpu_core = std::make_unique(*renderer->Rasterizer()); + gpu_core = std::make_unique(renderer->Rasterizer()); // Create threads for CPU cores 1-3, and build thread_to_cpu map // CPU core 0 is run on the main thread -- cgit v1.2.3