diff options
author | bunnei <bunneidev@gmail.com> | 2018-11-11 21:18:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-11 21:18:29 +0100 |
commit | a264fac943db808eef534c5aed5aa9d93be291b9 (patch) | |
tree | 3af7e86360b42607f1368dbce653129f7a46b28b /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #1669 from ReinUsesLisp/fixup-gs (diff) | |
parent | gl_rasterizer: Fix compiler warnings (diff) | |
download | yuzu-a264fac943db808eef534c5aed5aa9d93be291b9.tar yuzu-a264fac943db808eef534c5aed5aa9d93be291b9.tar.gz yuzu-a264fac943db808eef534c5aed5aa9d93be291b9.tar.bz2 yuzu-a264fac943db808eef534c5aed5aa9d93be291b9.tar.lz yuzu-a264fac943db808eef534c5aed5aa9d93be291b9.tar.xz yuzu-a264fac943db808eef534c5aed5aa9d93be291b9.tar.zst yuzu-a264fac943db808eef534c5aed5aa9d93be291b9.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-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 a404764f5..a99f2b1f9 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -919,8 +919,8 @@ void RasterizerOpenGL::SyncViewport() { auto& viewport = state.viewports[i]; viewport.x = viewport_rect.left; viewport.y = viewport_rect.bottom; - viewport.width = static_cast<GLsizei>(viewport_rect.GetWidth()); - viewport.height = static_cast<GLsizei>(viewport_rect.GetHeight()); + viewport.width = static_cast<GLfloat>(viewport_rect.GetWidth()); + viewport.height = static_cast<GLfloat>(viewport_rect.GetHeight()); viewport.depth_range_far = regs.viewport[i].depth_range_far; viewport.depth_range_near = regs.viewport[i].depth_range_near; } |