summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D12/Render.cpp
diff options
context:
space:
mode:
authorJules Blok <jules.blok@gmail.com>2016-08-12 13:55:35 +0200
committerJules Blok <jules.blok@gmail.com>2016-08-15 13:11:30 +0200
commit8c1c7fc2da65eea1a8244ce196d94313f7fdfb1b (patch)
treeb6838c764341f9852fd05a1a218a69d8163ffaf2 /Source/Core/VideoBackends/D3D12/Render.cpp
parent959d1879e578c1f29e8c95be445fa349b572191d (diff)
Cosmetics.
Diffstat (limited to 'Source/Core/VideoBackends/D3D12/Render.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D12/Render.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/D3D12/Render.cpp b/Source/Core/VideoBackends/D3D12/Render.cpp
index 6e6e6a8f3c..09e7356259 100644
--- a/Source/Core/VideoBackends/D3D12/Render.cpp
+++ b/Source/Core/VideoBackends/D3D12/Render.cpp
@@ -482,10 +482,7 @@ void Renderer::SetViewport()
width = (x + width <= GetTargetWidth()) ? width : (GetTargetWidth() - x);
height = (y + height <= GetTargetHeight()) ? height : (GetTargetHeight() - y);
- D3D12_VIEWPORT vp = {
- x, y, width, height,
- D3D12_MIN_DEPTH,
- 16777215.0f / 16777216.0f };
+ D3D12_VIEWPORT vp = {x, y, width, height, D3D12_MIN_DEPTH, 16777215.0f / 16777216.0f};
D3D::current_command_list->RSSetViewports(1, &vp);
}