Merge pull request #5595 from MerryMage/bRunning

VideoConfig: Remove bRunning
This commit is contained in:
Tilka 2017-06-11 15:26:04 +01:00 committed by GitHub
commit 937d72e591
6 changed files with 0 additions and 10 deletions

View File

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

View File

@ -696,7 +696,6 @@ Renderer::Renderer()
// Because of the fixed framebuffer size we need to disable the resolution
// options while running
g_Config.bRunning = true;
// The stencil is used for bounding box emulation when SSBOs are not available
glDisable(GL_STENCIL_TEST);
@ -764,7 +763,6 @@ void Renderer::Shutdown()
{
g_framebuffer_manager.reset();
g_Config.bRunning = false;
UpdateActiveConfig();
s_raster_font.reset();

View File

@ -47,7 +47,6 @@ void SWRenderer::Init()
void SWRenderer::Shutdown()
{
g_Config.bRunning = false;
UpdateActiveConfig();
}

View File

@ -50,7 +50,6 @@ Renderer::Renderer(std::unique_ptr<SwapChain> swap_chain)
swap_chain ? static_cast<int>(swap_chain->GetHeight()) : 0),
m_swap_chain(std::move(swap_chain))
{
g_Config.bRunning = true;
UpdateActiveConfig();
// 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()
{
g_Config.bRunning = false;
UpdateActiveConfig();
// Ensure all frames are written to frame dump at shutdown.

View File

@ -25,8 +25,6 @@ void UpdateActiveConfig()
VideoConfig::VideoConfig()
{
bRunning = false;
// Needed for the first frame, I think
fAspectRatioHackW = 1;
fAspectRatioHackH = 1;

View File

@ -61,7 +61,6 @@ struct VideoConfig final
// General
bool bVSync;
bool bRunning;
bool bWidescreenHack;
int iAspectRatio;
bool bCrop; // Aspect ratio controls.