summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorshuffle2 <godisgovernment@gmail.com>2016-10-04 17:25:40 -0700
committerGitHub <noreply@github.com>2016-10-04 17:25:40 -0700
commit50fef592d7743e970a5ead44526918215f91fdc8 (patch)
treec5748cded9c22aafdfd23f79658d8b80be6330ce /Source
parent9be6f38988a8bf2315ff129c8435320b0a8b3874 (diff)
parent43c48a6f486c600fad263a13f0a35dea5d7f67df (diff)
Merge pull request #4296 from RisingFog/fix_frame_dump
Fix frame dumps on file close in certain situations
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/VideoBackends/D3D/Render.cpp2
-rw-r--r--Source/Core/VideoBackends/D3D12/Render.cpp10
-rw-r--r--Source/Core/VideoBackends/OGL/Render.cpp2
-rw-r--r--Source/Core/VideoCommon/AVIDump.cpp2
4 files changed, 8 insertions, 8 deletions
diff --git a/Source/Core/VideoBackends/D3D/Render.cpp b/Source/Core/VideoBackends/D3D/Render.cpp
index ff0a6f396a..2997173014 100644
--- a/Source/Core/VideoBackends/D3D/Render.cpp
+++ b/Source/Core/VideoBackends/D3D/Render.cpp
@@ -923,8 +923,8 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight,
{
if (bLastFrameDumped && bAVIDumping)
{
- std::vector<u8>().swap(frame_data);
AVIDump::Stop();
+ std::vector<u8>().swap(frame_data);
bAVIDumping = false;
OSD::AddMessage("Stop dumping frames to AVI", 2000);
}
diff --git a/Source/Core/VideoBackends/D3D12/Render.cpp b/Source/Core/VideoBackends/D3D12/Render.cpp
index 3691f967be..9bbe2699ba 100644
--- a/Source/Core/VideoBackends/D3D12/Render.cpp
+++ b/Source/Core/VideoBackends/D3D12/Render.cpp
@@ -508,9 +508,10 @@ void Renderer::ClearScreen(const EFBRectangle& rc, bool color_enable, bool alpha
D3D12_DEPTH_STENCIL_DESC* depth_stencil_desc = nullptr;
// EXISTINGD3D11TODO: Should we enable Z testing here?
- /*if (!bpmem.zmode.testenable) depth_stencil_desc = &s_clear_depth_descs[CLEAR_DEPTH_DESC_DEPTH_DISABLED];
- else */ if (
- z_enable)
+ /*if (!bpmem.zmode.testenable) depth_stencil_desc =
+ &s_clear_depth_descs[CLEAR_DEPTH_DESC_DEPTH_DISABLED];
+ else */
+ if (z_enable)
depth_stencil_desc = &s_clear_depth_descs[CLEAR_DEPTH_DESC_DEPTH_ENABLED_WRITES_ENABLED];
else /*if (!z_enable)*/
depth_stencil_desc = &s_clear_depth_descs[CLEAR_DEPTH_DESC_DEPTH_ENABLED_WRITES_DISABLED];
@@ -903,9 +904,8 @@ void Renderer::SwapImpl(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height
{
if (bLastFrameDumped && bAVIDumping)
{
- std::vector<u8>().swap(frame_data);
-
AVIDump::Stop();
+ std::vector<u8>().swap(frame_data);
bAVIDumping = false;
OSD::AddMessage("Stop dumping frames to AVI", 2000);
}
diff --git a/Source/Core/VideoBackends/OGL/Render.cpp b/Source/Core/VideoBackends/OGL/Render.cpp
index f3e4d3c2cb..21227a2614 100644
--- a/Source/Core/VideoBackends/OGL/Render.cpp
+++ b/Source/Core/VideoBackends/OGL/Render.cpp
@@ -1530,9 +1530,9 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight,
{
if (bLastFrameDumped && bAVIDumping)
{
+ AVIDump::Stop();
std::vector<u8>().swap(frame_data);
w = h = 0;
- AVIDump::Stop();
bAVIDumping = false;
OSD::AddMessage("Stop dumping frames", 2000);
}
diff --git a/Source/Core/VideoCommon/AVIDump.cpp b/Source/Core/VideoCommon/AVIDump.cpp
index 8c6c8d6a1b..d31601d545 100644
--- a/Source/Core/VideoCommon/AVIDump.cpp
+++ b/Source/Core/VideoCommon/AVIDump.cpp
@@ -185,7 +185,7 @@ void AVIDump::AddFrame(const u8* data, int width, int height)
{
// Store current frame data in case frame dumping stops before next frame update,
// but make sure that you don't store the last stored frame and check the resolution upon
- // closing the file or else you store recusion, and dolphins don't like recursion.
+ // closing the file or else you store recursion, and dolphins don't like recursion.
if (!s_stop_dumping)
{
StoreFrameData(data, width, height);