summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/yuzu.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-01-05 04:09:39 -0300
committerGravatar ReinUsesLisp2021-02-13 02:16:19 -0300
commit75ccd9959ca7aa78b71fbb800ed2127d8613e9dc (patch)
tree3b9b5c0779cff69ef135bb3394ae70a0d3a9804d /src/yuzu_cmd/yuzu.cpp
parenttests/buffer_base: Add cached CPU writes tests (diff)
downloadyuzu-75ccd9959ca7aa78b71fbb800ed2127d8613e9dc.tar.gz
yuzu-75ccd9959ca7aa78b71fbb800ed2127d8613e9dc.tar.xz
yuzu-75ccd9959ca7aa78b71fbb800ed2127d8613e9dc.zip
gpu: Report renderer errors with exceptions
Instead of using a two step initialization to report errors, initialize the GPU renderer and rasterizer on the constructor and report errors through std::runtime_error.
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
-rw-r--r--src/yuzu_cmd/yuzu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp
index 0e1f3bdb3..982c41785 100644
--- a/src/yuzu_cmd/yuzu.cpp
+++ b/src/yuzu_cmd/yuzu.cpp
@@ -215,7 +215,7 @@ int main(int argc, char** argv) {
215 // Core is loaded, start the GPU (makes the GPU contexts current to this thread) 215 // Core is loaded, start the GPU (makes the GPU contexts current to this thread)
216 system.GPU().Start(); 216 system.GPU().Start();
217 217
218 system.Renderer().Rasterizer().LoadDiskResources( 218 system.Renderer().ReadRasterizer()->LoadDiskResources(
219 system.CurrentProcess()->GetTitleID(), false, 219 system.CurrentProcess()->GetTitleID(), false,
220 [](VideoCore::LoadCallbackStage, size_t value, size_t total) {}); 220 [](VideoCore::LoadCallbackStage, size_t value, size_t total) {});
221 221