Skip to content
Permalink
Browse files

VideoCommon/RenderBase: Remove dependency on renderer global within r…

…enderer

There's no need to have a dependency when we can simply call the
function itself as part of the instance itself.
  • Loading branch information...
lioncash committed Aug 5, 2019
1 parent cfdfbbf commit 7366b4281fea28f666ac7ed870f731f42f7b4044
Showing with 3 additions and 3 deletions.
  1. +3 −3 Source/Core/VideoCommon/RenderBase.cpp
@@ -629,8 +629,8 @@ void Renderer::ScaleTexture(AbstractFramebuffer* dst_framebuffer,
BeginUtilityDrawing();

// The shader needs to know the source rectangle.
const auto converted_src_rect = g_renderer->ConvertFramebufferRectangle(
src_rect, src_texture->GetWidth(), src_texture->GetHeight());
const auto converted_src_rect =
ConvertFramebufferRectangle(src_rect, src_texture->GetWidth(), src_texture->GetHeight());
const float rcp_src_width = 1.0f / src_texture->GetWidth();
const float rcp_src_height = 1.0f / src_texture->GetHeight();
const std::array<float, 4> uniforms = {{converted_src_rect.left * rcp_src_width,
@@ -1036,7 +1036,7 @@ bool Renderer::InitializeImGui()
pconfig.framebuffer_state.samples = 1;
pconfig.framebuffer_state.per_sample_shading = false;
pconfig.usage = AbstractPipelineUsage::Utility;
m_imgui_pipeline = g_renderer->CreatePipeline(pconfig);
m_imgui_pipeline = CreatePipeline(pconfig);
if (!m_imgui_pipeline)
{
PanicAlert("Failed to create imgui pipeline");

0 comments on commit 7366b42

Please sign in to comment.
You can’t perform that action at this time.