diff options
| author | Lioncash <mathew1800@gmail.com> | 2016-01-02 15:01:12 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2016-01-02 18:03:28 -0500 |
| commit | 01f99a04a2af61d70fc2a5eed14b2a0bf3c05696 (patch) | |
| tree | 5bc6cc4b936e4d5f444aa8dc7c6f2ec120ae6ad1 /Source/Core/VideoCommon/MainBase.cpp | |
| parent | 066af14272a87870bbb84280249cf938d9eba336 (diff) | |
VideoBackend: Get rid of a boolean global
Also gets rid of global headers
Diffstat (limited to 'Source/Core/VideoCommon/MainBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/MainBase.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/Source/Core/VideoCommon/MainBase.cpp b/Source/Core/VideoCommon/MainBase.cpp index 72ba4c5bef..067f506bde 100644 --- a/Source/Core/VideoCommon/MainBase.cpp +++ b/Source/Core/VideoCommon/MainBase.cpp @@ -2,19 +2,16 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. -#include "Common/Common.h" +#include "Common/CommonTypes.h" #include "Common/Event.h" +#include "Common/Flag.h" #include "Core/ConfigManager.h" #include "VideoCommon/AsyncRequests.h" -#include "VideoCommon/BoundingBox.h" #include "VideoCommon/BPStructs.h" #include "VideoCommon/CommandProcessor.h" #include "VideoCommon/Fifo.h" -#include "VideoCommon/FramebufferManagerBase.h" -#include "VideoCommon/MainBase.h" #include "VideoCommon/OnScreenDisplay.h" -#include "VideoCommon/PixelEngine.h" #include "VideoCommon/RenderBase.h" #include "VideoCommon/TextureCacheBase.h" #include "VideoCommon/VertexLoaderManager.h" @@ -22,8 +19,6 @@ #include "VideoCommon/VideoConfig.h" #include "VideoCommon/VideoState.h" -bool s_BackendInitialized = false; - static Common::Flag s_FifoShuttingDown; static volatile struct @@ -59,7 +54,7 @@ void VideoBackendHardware::Video_SetRendering(bool bEnabled) // Run from the CPU thread (from VideoInterface.cpp) void VideoBackendHardware::Video_BeginField(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight) { - if (s_BackendInitialized && g_ActiveConfig.bUseXFB) + if (m_initialized && g_ActiveConfig.bUseXFB) { s_beginFieldArgs.xfbAddr = xfbAddr; s_beginFieldArgs.fbWidth = fbWidth; @@ -71,7 +66,7 @@ void VideoBackendHardware::Video_BeginField(u32 xfbAddr, u32 fbWidth, u32 fbStri // Run from the CPU thread (from VideoInterface.cpp) void VideoBackendHardware::Video_EndField() { - if (s_BackendInitialized && g_ActiveConfig.bUseXFB && g_renderer) + if (m_initialized && g_ActiveConfig.bUseXFB && g_renderer) { SyncGPU(SYNC_GPU_SWAP); |
