mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-08 15:20:26 +01:00
A window freeze can occur in specific use cases like when using a kiosk shell. It scales surfaces to fit the compositor size and the transformation to buffer space can, in some cases, round the size one pixel higher than the texture size, making glTexSubImage2D() refuse the size argument and generate a GL_INVALID_VALUE without updating the texture. This commit ensures the GL renderer doesn't exceed the texture size. Here is how the issue was reproduced: $ weston --renderer=gl --backend=wayland --width=1920 --height=1080 --shell=kiosk $ gst-launch-1.0 videotestsrc ! video/x-raw,height=590,width=500 ! waylandsink display=wayland-1 Signed-off-by: Théo Maillart <tmaillart@freebox.fr> |
||
|---|---|---|
| .. | ||
| egl-glue.c | ||
| fragment.glsl | ||
| gl-renderer-internal.h | ||
| gl-renderer.c | ||
| gl-renderer.h | ||
| gl-shader-config-color-transformation.c | ||
| gl-shaders.c | ||
| gl-utils.c | ||
| meson.build | ||
| vertex.glsl | ||