From 35824aa4d58f433b3682a53c1bd762e9cdf3d098 Mon Sep 17 00:00:00 2001 From: degasus Date: Tue, 29 Oct 2013 21:42:40 +0100 Subject: [PATCH] ogl: ceil viewport, rounding isn't supported on vs and this is more like the old behavior --- Source/Core/VideoBackends/OGL/Src/Render.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoBackends/OGL/Src/Render.cpp b/Source/Core/VideoBackends/OGL/Src/Render.cpp index e507fc45cd..9234a8a6e2 100644 --- a/Source/Core/VideoBackends/OGL/Src/Render.cpp +++ b/Source/Core/VideoBackends/OGL/Src/Render.cpp @@ -1134,7 +1134,7 @@ void Renderer::UpdateViewport(Matrix44& vpCorrection) } else { - glViewport(round(X), round(Y), round(Width), round(Height)); + glViewport(ceil(X), ceil(Y), ceil(Width), ceil(Height)); } glDepthRangef(GLNear, GLFar); }