diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-11-08 21:08:07 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-11-08 23:48:50 +0100 |
commit | 096f339a2a817054c9e2dfef188a5e2470126236 (patch) | |
tree | 83b293c8ca82a1b6052c6d20063550fd92f10c61 /src/video_core/renderer_opengl/renderer_opengl.cpp | |
parent | microprofile: Silence conversion warnings (diff) | |
download | yuzu-096f339a2a817054c9e2dfef188a5e2470126236.tar yuzu-096f339a2a817054c9e2dfef188a5e2470126236.tar.gz yuzu-096f339a2a817054c9e2dfef188a5e2470126236.tar.bz2 yuzu-096f339a2a817054c9e2dfef188a5e2470126236.tar.lz yuzu-096f339a2a817054c9e2dfef188a5e2470126236.tar.xz yuzu-096f339a2a817054c9e2dfef188a5e2470126236.tar.zst yuzu-096f339a2a817054c9e2dfef188a5e2470126236.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/renderer_opengl.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 4bbd17b12..7646cbb0e 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -323,10 +323,12 @@ void RendererOpenGL::DrawScreenTriangles(const ScreenInfo& screen_info, float x, // (e.g. handheld mode) on a 1920x1080 framebuffer. f32 scale_u = 1.f, scale_v = 1.f; if (framebuffer_crop_rect.GetWidth() > 0) { - scale_u = static_cast<f32>(framebuffer_crop_rect.GetWidth()) / screen_info.texture.width; + scale_u = static_cast<f32>(framebuffer_crop_rect.GetWidth()) / + static_cast<f32>(screen_info.texture.width); } if (framebuffer_crop_rect.GetHeight() > 0) { - scale_v = static_cast<f32>(framebuffer_crop_rect.GetHeight()) / screen_info.texture.height; + scale_v = static_cast<f32>(framebuffer_crop_rect.GetHeight()) / + static_cast<f32>(screen_info.texture.height); } std::array<ScreenRectVertex, 4> vertices = {{ |