MainBase: Remove unused s_beginFieldArgs struct
This is only ever memset to zero and never used again. This also gets rid of an instance of undefined behavior considering the draft standard for C++17 (N4659) states at [dcl.type.cv] paragraph 5: " The semantics of an access through a volatile glvalue are implementation-defined. If an attempt is made to access an object defined with a volatile-qualified type through the use of a non-volatile glvalue, the behavior is undefined. "
This commit is contained in:
parent
1667980470
commit
826c11ba3b
|
@ -74,7 +74,7 @@ static Common::Event g_compressAndDumpStateSyncEvent;
|
||||||
static std::thread g_save_thread;
|
static std::thread g_save_thread;
|
||||||
|
|
||||||
// Don't forget to increase this after doing changes on the savestate system
|
// Don't forget to increase this after doing changes on the savestate system
|
||||||
static const u32 STATE_VERSION = 93; // Last changed in PR 6389
|
static const u32 STATE_VERSION = 94; // Last changed in PR 6456
|
||||||
|
|
||||||
// Maps savestate versions to Dolphin versions.
|
// Maps savestate versions to Dolphin versions.
|
||||||
// Versions after 42 don't need to be added to this list,
|
// Versions after 42 don't need to be added to this list,
|
||||||
|
|
|
@ -31,14 +31,6 @@
|
||||||
|
|
||||||
static Common::Flag s_FifoShuttingDown;
|
static Common::Flag s_FifoShuttingDown;
|
||||||
|
|
||||||
static volatile struct
|
|
||||||
{
|
|
||||||
u32 xfbAddr;
|
|
||||||
u32 fbWidth;
|
|
||||||
u32 fbStride;
|
|
||||||
u32 fbHeight;
|
|
||||||
} s_beginFieldArgs;
|
|
||||||
|
|
||||||
void VideoBackendBase::Video_ExitLoop()
|
void VideoBackendBase::Video_ExitLoop()
|
||||||
{
|
{
|
||||||
Fifo::ExitGpuLoop();
|
Fifo::ExitGpuLoop();
|
||||||
|
@ -175,7 +167,6 @@ void VideoBackendBase::InitializeShared()
|
||||||
m_initialized = true;
|
m_initialized = true;
|
||||||
|
|
||||||
s_FifoShuttingDown.Clear();
|
s_FifoShuttingDown.Clear();
|
||||||
memset((void*)&s_beginFieldArgs, 0, sizeof(s_beginFieldArgs));
|
|
||||||
m_invalid = false;
|
m_invalid = false;
|
||||||
frameCount = 0;
|
frameCount = 0;
|
||||||
|
|
||||||
|
@ -221,9 +212,6 @@ void VideoBackendBase::DoState(PointerWrap& p)
|
||||||
VideoCommon_DoState(p);
|
VideoCommon_DoState(p);
|
||||||
p.DoMarker("VideoCommon");
|
p.DoMarker("VideoCommon");
|
||||||
|
|
||||||
p.Do(s_beginFieldArgs);
|
|
||||||
p.DoMarker("VideoBackendBase");
|
|
||||||
|
|
||||||
// Refresh state.
|
// Refresh state.
|
||||||
if (p.GetMode() == PointerWrap::MODE_READ)
|
if (p.GetMode() == PointerWrap::MODE_READ)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue