VideoCommon: Move some common initialization logic to RenderBase

This commit is contained in:
Stenzek
2017-03-04 16:40:08 +10:00
parent 277829d842
commit 238a70b006
22 changed files with 67 additions and 87 deletions

View File

@ -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>();

View File

@ -11,7 +11,7 @@
namespace Null
{
// Init functions
Renderer::Renderer()
Renderer::Renderer() : ::Renderer(1, 1)
{
g_Config.bRunning = true;
UpdateActiveConfig();

View File

@ -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; }