qvidcap: Fix video capture being transparent on Wayland
PATCH 1/1 qvidcap: Fix video capture being transparent on Wayland
When a non-alpha capture format is used, the default value of 0.0 causes the capture to be transparent.
This issue is not apparent on X11 due to Qt not negotiating a format with alpha by default.
--- utils/qvidcap/v4l2-convert.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
utils/qvidcap/v4l2-convert.glsl +1 -1
@@ -96,7 +96,7 @@ void main() { const float texl_w = 1.0 / tex_w; const float texl_h = 1.0 / tex_h; - float alpha = 0.0; + float alpha = 1.0; vec2 xy = vs_TexCoord; float xcoord = floor(xy.x * tex_w); float ycoord = floor(xy.y * tex_h);
Signature · 1 line
2.43.0
Quoted 9 lines · Mavroudis Chatzilazaridis
When a non-alpha capture format is used, the default value of 0.0 causes the capture to be transparent.
This issue is not apparent on X11 due to Qt not negotiating a format with alpha by default.
--- utils/qvidcap/v4l2-convert.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signed-off-by Mavroudis Chatzilazaridis <[email protected]>