mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
VideoCommon: Move some common initialization logic to RenderBase
This commit is contained in:
parent
277829d842
commit
238a70b006
22 changed files with 67 additions and 87 deletions
|
@ -67,6 +67,7 @@ void VideoBackend::Video_Prepare()
|
|||
g_perf_query = std::make_unique<PerfQuery>();
|
||||
g_framebuffer_manager = std::make_unique<FramebufferManager>();
|
||||
g_texture_cache = std::make_unique<TextureCache>();
|
||||
g_renderer->InitializeCommon();
|
||||
VertexShaderCache::s_instance = std::make_unique<VertexShaderCache>();
|
||||
GeometryShaderCache::s_instance = std::make_unique<GeometryShaderCache>();
|
||||
PixelShaderCache::s_instance = std::make_unique<PixelShaderCache>();
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
namespace Null
|
||||
{
|
||||
// Init functions
|
||||
Renderer::Renderer()
|
||||
Renderer::Renderer() : ::Renderer(1, 1)
|
||||
{
|
||||
g_Config.bRunning = true;
|
||||
UpdateActiveConfig();
|
||||
|
|
|
@ -12,7 +12,7 @@ class Renderer : public ::Renderer
|
|||
{
|
||||
public:
|
||||
Renderer();
|
||||
~Renderer();
|
||||
~Renderer() override;
|
||||
|
||||
void RenderText(const std::string& pstr, int left, int top, u32 color) override;
|
||||
u32 AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data) override { return 0; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue