summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-20 20:18:03 +0200
committerGitHub <noreply@github.com>2018-04-20 20:18:03 +0200
commit326b044c19df0b1a342acf87f2ba7cd06e9a1e97 (patch)
treed815c707b437b3685e8ba188bbf0940d4205de2a /src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
parentMerge pull request #361 from lioncash/common (diff)
parentmath_util: Remove the Clamp() function (diff)
downloadyuzu-326b044c19df0b1a342acf87f2ba7cd06e9a1e97.tar
yuzu-326b044c19df0b1a342acf87f2ba7cd06e9a1e97.tar.gz
yuzu-326b044c19df0b1a342acf87f2ba7cd06e9a1e97.tar.bz2
yuzu-326b044c19df0b1a342acf87f2ba7cd06e9a1e97.tar.lz
yuzu-326b044c19df0b1a342acf87f2ba7cd06e9a1e97.tar.xz
yuzu-326b044c19df0b1a342acf87f2ba7cd06e9a1e97.tar.zst
yuzu-326b044c19df0b1a342acf87f2ba7cd06e9a1e97.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer_cache.cpp')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp8
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;