diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-03 19:56:33 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-04 08:36:58 +0200 |
commit | 2665457f4ab3562525543f8e474bfb93ce3416ad (patch) | |
tree | 16166950cebde8f7ac99d51a3bcdcfa2869cf627 /src/video_core/renderer_base.h | |
parent | video_core: Eliminate the g_renderer global variable (diff) | |
download | yuzu-2665457f4ab3562525543f8e474bfb93ce3416ad.tar yuzu-2665457f4ab3562525543f8e474bfb93ce3416ad.tar.gz yuzu-2665457f4ab3562525543f8e474bfb93ce3416ad.tar.bz2 yuzu-2665457f4ab3562525543f8e474bfb93ce3416ad.tar.lz yuzu-2665457f4ab3562525543f8e474bfb93ce3416ad.tar.xz yuzu-2665457f4ab3562525543f8e474bfb93ce3416ad.tar.zst yuzu-2665457f4ab3562525543f8e474bfb93ce3416ad.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_base.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/video_core/renderer_base.h b/src/video_core/renderer_base.h index effb9aed3..235de23a1 100644 --- a/src/video_core/renderer_base.h +++ b/src/video_core/renderer_base.h @@ -46,8 +46,12 @@ public: return m_current_frame; } - RasterizerInterface* Rasterizer() const { - return rasterizer.get(); + RasterizerInterface& Rasterizer() { + return *rasterizer; + } + + const RasterizerInterface& Rasterizer() const { + return *rasterizer; } void RefreshRasterizerSetting(); |