kwin/src/plugins/platforms
Aleix Pol fffd41b32e Only create the viewport as needed
So far, we were creating a model view with the complete scene rendered
(even if we didn't render the windows themselves). This required us to
have a big glPerspective spanning the entire scene and we were just
cropping it as we rendered it into a smaller texture.

This changes our scenes so we have the correct matrix set up at all
times.

Specifically in the case of the Pinephone, this solves the following
issue where we were unable to connect external displays because it
exceeded GL_MAX_VIEWPORT_DIMS:
https://invent.kde.org/teams/plasma-mobile/issues/-/issues/11
2021-06-10 10:06:35 +02:00
..
drm Only create the viewport as needed 2021-06-10 10:06:35 +02:00
fbdev Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
virtual Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
wayland Only create the viewport as needed 2021-06-10 10:06:35 +02:00
x11 Only create the viewport as needed 2021-06-10 10:06:35 +02:00
CMakeLists.txt Make libdrm required dependency 2021-05-14 18:00:40 +00:00