renderer_base: Don't directly expose the rasterizer unique_ptr
There's no reason to allow direct access to the unique_ptr instance. Only its contained pointer.
This commit is contained in:
parent
58c336b671
commit
bf76afc68d
6 changed files with 21 additions and 18 deletions
|
@ -54,11 +54,14 @@ public:
|
|||
return m_current_frame;
|
||||
}
|
||||
|
||||
VideoCore::RasterizerInterface* Rasterizer() const {
|
||||
return rasterizer.get();
|
||||
}
|
||||
|
||||
void RefreshRasterizerSetting();
|
||||
|
||||
std::unique_ptr<VideoCore::RasterizerInterface> rasterizer;
|
||||
|
||||
protected:
|
||||
std::unique_ptr<VideoCore::RasterizerInterface> rasterizer;
|
||||
f32 m_current_fps; ///< Current framerate, should be set by the renderer
|
||||
int m_current_frame; ///< Current frame, should be set by the renderer
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue