mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
VideoBackends: Store a backbuffer 'scale'
This is a scaling factor, used for hi-dpi configurations.
This commit is contained in:
@ -351,10 +351,10 @@ static void InitDriverInfo()
|
||||
}
|
||||
|
||||
// Init functions
|
||||
Renderer::Renderer(std::unique_ptr<GLContext> main_gl_context)
|
||||
Renderer::Renderer(std::unique_ptr<GLContext> main_gl_context, float backbuffer_scale)
|
||||
: ::Renderer(static_cast<int>(std::max(main_gl_context->GetBackBufferWidth(), 1u)),
|
||||
static_cast<int>(std::max(main_gl_context->GetBackBufferHeight(), 1u)),
|
||||
AbstractTextureFormat::RGBA8),
|
||||
backbuffer_scale, AbstractTextureFormat::RGBA8),
|
||||
m_main_gl_context(std::move(main_gl_context)),
|
||||
m_current_rasterization_state(RenderState::GetInvalidRasterizationState()),
|
||||
m_current_depth_state(RenderState::GetInvalidDepthState()),
|
||||
|
Reference in New Issue
Block a user