From 79dffa047f9080b036f4d357de7257291e45119b Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 8 Dec 2017 19:01:17 +1100 Subject: [PATCH] [client] dont mipmap when enlarging smaller screens --- client/renderers/opengl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/renderers/opengl.c b/client/renderers/opengl.c index 1162ba13..2b8ddf93 100644 --- a/client/renderers/opengl.c +++ b/client/renderers/opengl.c @@ -206,8 +206,8 @@ bool lgr_opengl_render(void * opaque, const LG_RendererRect destRect, const uint ); const bool mipmap = resample && ( - (this->format.width != destRect.w) || - (this->format.height != destRect.h)); + (this->format.width > destRect.w) || + (this->format.height > destRect.h)); // unbind the buffer glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);