graesslin created this revision. graesslin added reviewers: KWin, Plasma on Wayland, bshah. Restricted Application added subscribers: kwin, plasma-devel. Restricted Application added projects: Plasma on Wayland, KWin.
REVISION SUMMARY The shader self test uses GLRenderTarget and restores the viewport. Due to the setVirtualScreenGeometry not being set the calculated viewport is incorrect and any rendering breaks. This is a regression introduced with https://phabricator.kde.org/rKWIN1708278a451e6dab92549f9cabe6ad13ea3b4ba2 which only affects Wayland backends which do not perform per screen rendering. The glxbackend was not affected as it sets the viewport on screen geometry change. REPOSITORY rKWIN KWin BRANCH fix-viewport-after-self-test REVISION DETAIL https://phabricator.kde.org/D3155 AFFECTED FILES scene_opengl.cpp EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: graesslin, #kwin, #plasma_on_wayland, bshah Cc: plasma-devel, kwin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas