summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodolfo Bogado <rodolfoosvaldobogado@gmail.com>2018-11-27 04:04:33 +0100
committerRodolfo Bogado <rodolfoosvaldobogado@gmail.com>2018-11-27 04:04:33 +0100
commit6710eb4892a9a728153b9485138133db5bc33d23 (patch)
treefc8efb0f404df5b0cb79a6517cda8ba8d3c0b2c6
parentAdd support for Clip Distance enabled register (diff)
downloadyuzu-6710eb4892a9a728153b9485138133db5bc33d23.tar
yuzu-6710eb4892a9a728153b9485138133db5bc33d23.tar.gz
yuzu-6710eb4892a9a728153b9485138133db5bc33d23.tar.bz2
yuzu-6710eb4892a9a728153b9485138133db5bc33d23.tar.lz
yuzu-6710eb4892a9a728153b9485138133db5bc33d23.tar.xz
yuzu-6710eb4892a9a728153b9485138133db5bc33d23.tar.zst
yuzu-6710eb4892a9a728153b9485138133db5bc33d23.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index edb285a66..4f608f69e 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -993,18 +993,11 @@ void RasterizerOpenGL::SyncViewport(OpenGLState& current_state) {
for (std::size_t i = 0; i < viewport_count; i++) {
auto& viewport = current_state.viewports[i];
const auto& src = regs.viewports[i];
- if (regs.viewport_transform_enabled) {
- const MathUtil::Rectangle<s32> viewport_rect{regs.viewport_transform[i].GetRect()};
- viewport.x = viewport_rect.left;
- viewport.y = viewport_rect.bottom;
- viewport.width = viewport_rect.GetWidth();
- viewport.height = viewport_rect.GetHeight();
- } else {
- viewport.x = src.x;
- viewport.y = src.y;
- viewport.width = src.width;
- viewport.height = src.height;
- }
+ const MathUtil::Rectangle<s32> viewport_rect{regs.viewport_transform[i].GetRect()};
+ viewport.x = viewport_rect.left;
+ viewport.y = viewport_rect.bottom;
+ viewport.width = viewport_rect.GetWidth();
+ viewport.height = viewport_rect.GetHeight();
viewport.depth_range_far = regs.viewports[i].depth_range_far;
viewport.depth_range_near = regs.viewports[i].depth_range_near;
}