From e755f0befab500f5db72e0ac64796811a44247f7 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 7 Aug 2021 04:00:18 +1000 Subject: [PATCH] [client] egl: correct letterbox area clear attempt #3 - sigh --- client/renderers/EGL/egl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/renderers/EGL/egl.c b/client/renderers/EGL/egl.c index 5edc9660..3487947b 100644 --- a/client/renderers/EGL/egl.c +++ b/client/renderers/EGL/egl.c @@ -860,7 +860,7 @@ inline static void renderLetterBox(struct Inst * this) glClear(GL_COLOR_BUFFER_BIT); float x2 = this->destRect.x + this->destRect.w; - glScissor(x2 + 0.5, 0.0f, this->width - x2, this->height); + glScissor(x2 - 0.5, 0.0f, this->width - x2, this->height + 1.0f); glClear(GL_COLOR_BUFFER_BIT); } @@ -870,7 +870,7 @@ inline static void renderLetterBox(struct Inst * this) glClear(GL_COLOR_BUFFER_BIT); float y2 = this->destRect.y + this->destRect.h; - glScissor(0.0f, y2 + 0.5, this->width, this->height - y2); + glScissor(0.0f, y2 - 0.5, this->width, this->height - y2 + 1.0f); glClear(GL_COLOR_BUFFER_BIT); }