diff options
author | ReinUsesLisp <[email protected]> | 2021-01-05 04:09:39 -0300 |
---|---|---|
committer | ReinUsesLisp <[email protected]> | 2021-02-13 02:16:19 -0300 |
commit | 75ccd9959ca7aa78b71fbb800ed2127d8613e9dc (patch) | |
tree | 3b9b5c0779cff69ef135bb3394ae70a0d3a9804d /src/video_core/gpu.h | |
parent | 19156292a374ddf15c6e8679f93d146a6d305fd6 (diff) | |
download | yuzu-android-75ccd9959ca7aa78b71fbb800ed2127d8613e9dc.tar.gz yuzu-android-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/video_core/gpu.h')
-rw-r--r-- | src/video_core/gpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index b4ce6b154..b2ee45496 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -366,6 +366,7 @@ protected: std::unique_ptr<Tegra::DmaPusher> dma_pusher; std::unique_ptr<Tegra::CDmaPusher> cdma_pusher; std::unique_ptr<VideoCore::RendererBase> renderer; + VideoCore::RasterizerInterface* rasterizer = nullptr; const bool use_nvdec; private: |