summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-10-20 20:24:11 -0400
committerLioncash <mathew1800@gmail.com>2015-10-20 20:30:36 -0400
commit10c1fd7f388de2ea361211b8995d4b00020bc48c (patch)
tree1d9206c9e0ae87ee3dfb3d4385ce300525ffb17a /Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp
parent09641ec313814b90298e42af05934f16c23ac291 (diff)
MathUtil: Make Rectangle constructors and equality operator constexpr
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 736bf2f042..a18275b90b 100644
--- a/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp
+++ b/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp
@@ -104,11 +104,7 @@ void PSTextureEncoder::Encode(u8* dst, const TextureCache::TCacheEntryBase *text
D3D11_VIEWPORT vp = CD3D11_VIEWPORT(0.f, 0.f, FLOAT(texture_entry->CacheLinesPerRow() * 8), FLOAT(texture_entry->NumBlocksY()));
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);