diff options
| author | 2018-08-03 13:56:33 -0400 | |
|---|---|---|
| committer | 2018-08-04 02:36:58 -0400 | |
| commit | 2665457f4ab3562525543f8e474bfb93ce3416ad (patch) | |
| tree | 16166950cebde8f7ac99d51a3bcdcfa2869cf627 /src/core/core.cpp | |
| parent | video_core: Eliminate the g_renderer global variable (diff) | |
| download | yuzu-2665457f4ab3562525543f8e474bfb93ce3416ad.tar.gz yuzu-2665457f4ab3562525543f8e474bfb93ce3416ad.tar.xz yuzu-2665457f4ab3562525543f8e474bfb93ce3416ad.zip | |
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().
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
| 187 | return ResultStatus::ErrorVideoCore; | 187 | return ResultStatus::ErrorVideoCore; |
| 188 | } | 188 | } |
| 189 | 189 | ||
| 190 | gpu_core = std::make_unique<Tegra::GPU>(*renderer->Rasterizer()); | 190 | gpu_core = std::make_unique<Tegra::GPU>(renderer->Rasterizer()); |
| 191 | 191 | ||
| 192 | // Create threads for CPU cores 1-3, and build thread_to_cpu map | 192 | // Create threads for CPU cores 1-3, and build thread_to_cpu map |
| 193 | // CPU core 0 is run on the main thread | 193 | // CPU core 0 is run on the main thread |