summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Laing <frederic.laing@alumni.fh-aachen.de>2018-11-08 13:33:30 +0100
committerFrederic Laing <frederic.laing@alumni.fh-aachen.de>2018-11-08 13:33:30 +0100
commit1d36aec2674fdce977824457bb61109ced03bba2 (patch)
treebdcd3ced8b44d117838ceac31d3901591a93c4dd
parentMerge pull request #1630 from bunnei/fix-mapbufferex (diff)
downloadyuzu-1d36aec2674fdce977824457bb61109ced03bba2.tar
yuzu-1d36aec2674fdce977824457bb61109ced03bba2.tar.gz
yuzu-1d36aec2674fdce977824457bb61109ced03bba2.tar.bz2
yuzu-1d36aec2674fdce977824457bb61109ced03bba2.tar.lz
yuzu-1d36aec2674fdce977824457bb61109ced03bba2.tar.xz
yuzu-1d36aec2674fdce977824457bb61109ced03bba2.tar.zst
yuzu-1d36aec2674fdce977824457bb61109ced03bba2.zip
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp4
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 bb263b6aa..dd7d187eb 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -903,8 +903,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;
}