summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2015-11-18 10:40:54 +0100
committerMarkus Wick <degasus@users.noreply.github.com>2015-11-18 10:40:54 +0100
commitf172cda50f3918ebbb033ec23890358706033f0f (patch)
tree187914e1a583363098fa5cfdf5cdab689f004e58 /Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp
parent0b123605de5b1c7bd8b661af6a4ef5ed804ddeaa (diff)
parent10c1fd7f388de2ea361211b8995d4b00020bc48c (diff)
Merge pull request #3191 from lioncash/rekt
MathUtil: Minor changes to Rectangle
Diffstat (limited to 'Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp b/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp
index b3209bef48..68a7a84d6a 100644
--- a/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp
+++ b/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp
@@ -106,11 +106,7 @@ void PSTextureEncoder::Encode(u8* dst, u32 format, u32 native_width, u32 bytes_p
D3D11_VIEWPORT vp = CD3D11_VIEWPORT(0.f, 0.f, FLOAT(words_per_row), FLOAT(num_blocks_y));
D3D::context->RSSetViewports(1, &vp);
- EFBRectangle fullSrcRect;
- fullSrcRect.left = 0;
- fullSrcRect.top = 0;
- fullSrcRect.right = EFB_WIDTH;
- fullSrcRect.bottom = EFB_HEIGHT;
+ constexpr EFBRectangle fullSrcRect(0, 0, EFB_WIDTH, EFB_HEIGHT);
TargetRectangle targetRect = g_renderer->ConvertEFBRectangle(fullSrcRect);
D3D::context->OMSetRenderTargets(1, &m_outRTV, nullptr);