~ fixed backgrounds not rendering in the proper positions under some specific configurations

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
Alexis Maiquez 2022-02-28 02:22:46 +01:00
parent 9ff5330a39
commit 0aefcbe1a0

View File

@ -70,7 +70,7 @@ void CContext::initializeViewports ()
std::cout << "Found requested screen: " << info->name << " -> " << crtc->x << "x" << crtc->y << ":" << crtc->width << "x" << crtc->height << std::endl;
glm::ivec4 viewport = {
crtc->x, fullHeight - (crtc->y + crtc->height), crtc->width, crtc->height
crtc->x, crtc->y, crtc->width, crtc->height
};
this->m_viewports.push_back (viewport);