parent
eefae402b3
commit
a0b41c83e7
|
@ -13,13 +13,11 @@ namespace Null
|
||||||
// Init functions
|
// Init functions
|
||||||
Renderer::Renderer() : ::Renderer(1, 1)
|
Renderer::Renderer() : ::Renderer(1, 1)
|
||||||
{
|
{
|
||||||
g_Config.bRunning = true;
|
|
||||||
UpdateActiveConfig();
|
UpdateActiveConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
Renderer::~Renderer()
|
Renderer::~Renderer()
|
||||||
{
|
{
|
||||||
g_Config.bRunning = false;
|
|
||||||
UpdateActiveConfig();
|
UpdateActiveConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -696,7 +696,6 @@ Renderer::Renderer()
|
||||||
|
|
||||||
// Because of the fixed framebuffer size we need to disable the resolution
|
// Because of the fixed framebuffer size we need to disable the resolution
|
||||||
// options while running
|
// options while running
|
||||||
g_Config.bRunning = true;
|
|
||||||
|
|
||||||
// The stencil is used for bounding box emulation when SSBOs are not available
|
// The stencil is used for bounding box emulation when SSBOs are not available
|
||||||
glDisable(GL_STENCIL_TEST);
|
glDisable(GL_STENCIL_TEST);
|
||||||
|
@ -764,7 +763,6 @@ void Renderer::Shutdown()
|
||||||
{
|
{
|
||||||
g_framebuffer_manager.reset();
|
g_framebuffer_manager.reset();
|
||||||
|
|
||||||
g_Config.bRunning = false;
|
|
||||||
UpdateActiveConfig();
|
UpdateActiveConfig();
|
||||||
|
|
||||||
s_raster_font.reset();
|
s_raster_font.reset();
|
||||||
|
|
|
@ -47,7 +47,6 @@ void SWRenderer::Init()
|
||||||
|
|
||||||
void SWRenderer::Shutdown()
|
void SWRenderer::Shutdown()
|
||||||
{
|
{
|
||||||
g_Config.bRunning = false;
|
|
||||||
UpdateActiveConfig();
|
UpdateActiveConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,6 @@ Renderer::Renderer(std::unique_ptr<SwapChain> swap_chain)
|
||||||
swap_chain ? static_cast<int>(swap_chain->GetHeight()) : 0),
|
swap_chain ? static_cast<int>(swap_chain->GetHeight()) : 0),
|
||||||
m_swap_chain(std::move(swap_chain))
|
m_swap_chain(std::move(swap_chain))
|
||||||
{
|
{
|
||||||
g_Config.bRunning = true;
|
|
||||||
UpdateActiveConfig();
|
UpdateActiveConfig();
|
||||||
|
|
||||||
// Set to something invalid, forcing all states to be re-initialized.
|
// Set to something invalid, forcing all states to be re-initialized.
|
||||||
|
@ -60,7 +59,6 @@ Renderer::Renderer(std::unique_ptr<SwapChain> swap_chain)
|
||||||
|
|
||||||
Renderer::~Renderer()
|
Renderer::~Renderer()
|
||||||
{
|
{
|
||||||
g_Config.bRunning = false;
|
|
||||||
UpdateActiveConfig();
|
UpdateActiveConfig();
|
||||||
|
|
||||||
// Ensure all frames are written to frame dump at shutdown.
|
// Ensure all frames are written to frame dump at shutdown.
|
||||||
|
|
|
@ -25,8 +25,6 @@ void UpdateActiveConfig()
|
||||||
|
|
||||||
VideoConfig::VideoConfig()
|
VideoConfig::VideoConfig()
|
||||||
{
|
{
|
||||||
bRunning = false;
|
|
||||||
|
|
||||||
// Needed for the first frame, I think
|
// Needed for the first frame, I think
|
||||||
fAspectRatioHackW = 1;
|
fAspectRatioHackW = 1;
|
||||||
fAspectRatioHackH = 1;
|
fAspectRatioHackH = 1;
|
||||||
|
|
|
@ -61,7 +61,6 @@ struct VideoConfig final
|
||||||
|
|
||||||
// General
|
// General
|
||||||
bool bVSync;
|
bool bVSync;
|
||||||
bool bRunning;
|
|
||||||
bool bWidescreenHack;
|
bool bWidescreenHack;
|
||||||
int iAspectRatio;
|
int iAspectRatio;
|
||||||
bool bCrop; // Aspect ratio controls.
|
bool bCrop; // Aspect ratio controls.
|
||||||
|
|
Loading…
Reference in New Issue