4d085e709da2732f12d93ebca1311bad8c22d75c
If the client attaches a new SHM buffer with a different format from a previous one then we ought to trigger a full upload so that GL can allocate a new texture. Otherwise Weston would technically be doing invalid operations because it would call glTexSubImage2D with a different format from the one specified in glTexImage2D. Presumably it would also mean GL would have to convert the buffer as it copies the sub-region in which isn't ideal. This patch makes it decide the GL format when the buffer is attached instead of when processing the damage and it will set needs_full_upload if it is different from what it used before.
Weston Weston is the reference implementation of a Wayland compositor, and a useful compositor in its own right. Weston has various backends that lets it run on Linux kernel modesetting and evdev input as well as under X11. Weston ships with a few example clients, from simple clients that demonstrate certain aspects of the protocol to more complete clients and a simplistic toolkit. There is also a quite capable terminal emulator (weston-terminal) and an toy/example desktop shell. Finally, weston also provides integration with the Xorg server and can pull X clients into the Wayland desktop and act as a X window manager. Refer to http://wayland.freedesktop.org/building.html for building weston and its dependencies. The test suite can be invoked via `make check`; see http://wayland.freedesktop.org/testing.html for additional details.
Description
Languages
C
98%
Meson
1.4%
Shell
0.3%
GLSL
0.2%