diff options
author | Lioncash <mathew1800@gmail.com> | 2019-05-04 08:00:16 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-05-04 08:00:17 +0200 |
commit | 08b270676bcbe05c8d1f78b33c46f2c6f3de8977 (patch) | |
tree | 86ddea853a39bee9fa402d3aeee8aed04c4e92fc | |
parent | Merge pull request #2408 from FearlessTobi/port-4215 (diff) | |
download | yuzu-08b270676bcbe05c8d1f78b33c46f2c6f3de8977.tar yuzu-08b270676bcbe05c8d1f78b33c46f2c6f3de8977.tar.gz yuzu-08b270676bcbe05c8d1f78b33c46f2c6f3de8977.tar.bz2 yuzu-08b270676bcbe05c8d1f78b33c46f2c6f3de8977.tar.lz yuzu-08b270676bcbe05c8d1f78b33c46f2c6f3de8977.tar.xz yuzu-08b270676bcbe05c8d1f78b33c46f2c6f3de8977.tar.zst yuzu-08b270676bcbe05c8d1f78b33c46f2c6f3de8977.zip |
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index db73e746c..3cc945235 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -922,8 +922,8 @@ void RasterizerOpenGL::SyncViewport(OpenGLState& current_state) { 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; + viewport.depth_range_far = src.depth_range_far; + viewport.depth_range_near = src.depth_range_near; } state.depth_clamp.far_plane = regs.view_volume_clip_control.depth_clamp_far != 0; state.depth_clamp.near_plane = regs.view_volume_clip_control.depth_clamp_near != 0; |