diff options
author | Lioncash <mathew1800@gmail.com> | 2018-04-20 05:01:50 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-04-20 16:14:13 +0200 |
commit | fae2dd034462c5a6b086e46b3437ea6e2456d5eb (patch) | |
tree | 3a53e7b4786e4712874d63a2a1cecc6755475051 /src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | |
parent | Merge pull request #356 from lioncash/shader (diff) | |
download | yuzu-fae2dd034462c5a6b086e46b3437ea6e2456d5eb.tar yuzu-fae2dd034462c5a6b086e46b3437ea6e2456d5eb.tar.gz yuzu-fae2dd034462c5a6b086e46b3437ea6e2456d5eb.tar.bz2 yuzu-fae2dd034462c5a6b086e46b3437ea6e2456d5eb.tar.lz yuzu-fae2dd034462c5a6b086e46b3437ea6e2456d5eb.tar.xz yuzu-fae2dd034462c5a6b086e46b3437ea6e2456d5eb.tar.zst yuzu-fae2dd034462c5a6b086e46b3437ea6e2456d5eb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp index 561c6913d..6c1c6775a 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp @@ -1086,10 +1086,10 @@ SurfaceSurfaceRect_Tuple RasterizerCacheOpenGL::GetFramebufferSurfaces( } MathUtil::Rectangle<u32> viewport_clamped{ - static_cast<u32>(MathUtil::Clamp(viewport.left, 0, static_cast<s32>(config.width))), - static_cast<u32>(MathUtil::Clamp(viewport.top, 0, static_cast<s32>(config.height))), - static_cast<u32>(MathUtil::Clamp(viewport.right, 0, static_cast<s32>(config.width))), - static_cast<u32>(MathUtil::Clamp(viewport.bottom, 0, static_cast<s32>(config.height)))}; + static_cast<u32>(std::clamp(viewport.left, 0, static_cast<s32>(config.width))), + static_cast<u32>(std::clamp(viewport.top, 0, static_cast<s32>(config.height))), + static_cast<u32>(std::clamp(viewport.right, 0, static_cast<s32>(config.width))), + static_cast<u32>(std::clamp(viewport.bottom, 0, static_cast<s32>(config.height)))}; // get color and depth surfaces SurfaceParams color_params; |