From f792c82528d4e7d75078ded49f7a152826d33df9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 25 Oct 2016 14:13:54 +0530 Subject: [PATCH] Call GLRenderTarget::setVirtualScreenGeometry prior to self test 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 1708278a451e6dab92549f9cabe6ad13ea3b4ba2 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. Reviewers: bshah, #plasma_on_wayland, #kwin Reviewed By: bshah, #plasma_on_wayland, #kwin Subscribers: plasma-devel, kwin Tags: #plasma_on_wayland, #kwin Differential Revision: https://phabricator.kde.org/D3155 --- scene_opengl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 845bd442ab..6b17c49563 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -1012,6 +1012,7 @@ SceneOpenGL2::SceneOpenGL2(OpenGLBackend *backend, QObject *parent) const QSize &s = screens()->size(); GLRenderTarget::setVirtualScreenSize(s); + GLRenderTarget::setVirtualScreenGeometry(screens()->geometry()); // push one shader on the stack so that one is always bound ShaderManager::instance()->pushShader(ShaderTrait::MapTexture);