[client] egl: correct letterbox area clear attempt #3 - sigh

This commit is contained in:
Geoffrey McRae 2021-08-07 04:00:18 +10:00
parent 3e08e7aafa
commit e755f0befa

View file

@ -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);
}