Move utiltily drawing out of RenderBase
This commit is contained in:
parent
99d3e489ea
commit
55d15bdd6e
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include "VideoCommon/AbstractFramebuffer.h"
|
||||
#include "VideoCommon/AbstractTexture.h"
|
||||
#include "VideoCommon/BPFunctions.h"
|
||||
#include "VideoCommon/FramebufferManager.h"
|
||||
#include "VideoCommon/RenderBase.h"
|
||||
#include "VideoCommon/ShaderCache.h"
|
||||
|
@ -22,14 +23,14 @@ bool AbstractGfx::IsHeadless() const
|
|||
|
||||
void AbstractGfx::BeginUtilityDrawing()
|
||||
{
|
||||
if (g_renderer)
|
||||
g_renderer->BeginUtilityDrawing();
|
||||
g_vertex_manager->Flush();
|
||||
}
|
||||
|
||||
void AbstractGfx::EndUtilityDrawing()
|
||||
{
|
||||
if (g_renderer)
|
||||
g_renderer->EndUtilityDrawing();
|
||||
// Reset framebuffer/scissor/viewport. Pipeline will be reset at next draw.
|
||||
g_framebuffer_manager->BindEFBFramebuffer();
|
||||
BPFunctions::SetScissorAndViewport();
|
||||
}
|
||||
|
||||
void AbstractGfx::SetFramebuffer(AbstractFramebuffer* framebuffer)
|
||||
|
|
|
@ -95,18 +95,6 @@ bool Renderer::Initialize()
|
|||
return true;
|
||||
}
|
||||
|
||||
void Renderer::BeginUtilityDrawing()
|
||||
{
|
||||
g_vertex_manager->Flush();
|
||||
}
|
||||
|
||||
void Renderer::EndUtilityDrawing()
|
||||
{
|
||||
// Reset framebuffer/scissor/viewport. Pipeline will be reset at next draw.
|
||||
g_framebuffer_manager->BindEFBFramebuffer();
|
||||
BPFunctions::SetScissorAndViewport();
|
||||
}
|
||||
|
||||
bool Renderer::EFBHasAlphaChannel() const
|
||||
{
|
||||
return m_prev_efb_format == PixelFormat::RGBA6_Z24;
|
||||
|
|
|
@ -68,8 +68,6 @@ public:
|
|||
|
||||
virtual bool Initialize();
|
||||
|
||||
void BeginUtilityDrawing();
|
||||
void EndUtilityDrawing();
|
||||
// Ideal internal resolution - multiple of the native EFB resolution
|
||||
int GetTargetWidth() const { return m_target_width; }
|
||||
int GetTargetHeight() const { return m_target_height; }
|
||||
|
|
Loading…
Reference in New Issue