summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2019-01-07 21:42:32 -0500
committerGravatar bunnei2019-03-06 21:07:33 -0500
commit81e086b5ac490f41498030ee3127c086116b4af2 (patch)
treef07e836ff4d4a69d58b191e491953437622b5221 /src/core/core.cpp
parentMerge pull request #2199 from lioncash/arbiter (diff)
downloadyuzu-81e086b5ac490f41498030ee3127c086116b4af2.tar.gz
yuzu-81e086b5ac490f41498030ee3127c086116b4af2.tar.xz
yuzu-81e086b5ac490f41498030ee3127c086116b4af2.zip
core: Set is_powered_on before GPU is initialized.
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 6dda20faa..11094a87a 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -129,10 +129,12 @@ struct System::Impl {
129 return ResultStatus::ErrorVideoCore; 129 return ResultStatus::ErrorVideoCore;
130 } 130 }
131 131
132 is_powered_on = true;
133
132 gpu_core = std::make_unique<Tegra::GPU>(system, renderer->Rasterizer()); 134 gpu_core = std::make_unique<Tegra::GPU>(system, renderer->Rasterizer());
133 135
134 cpu_core_manager.Initialize(system); 136 cpu_core_manager.Initialize(system);
135 is_powered_on = true; 137
136 LOG_DEBUG(Core, "Initialized OK"); 138 LOG_DEBUG(Core, "Initialized OK");
137 139
138 // Reset counters and set time origin to current frame 140 // Reset counters and set time origin to current frame