diff mbox series

[v4l-utils] qvidcap: Fix video capture being transparent on Wayland

Message ID 20250614134523.695131-2-mavchatz@protonmail.com
State New
Headers show
Series [v4l-utils] qvidcap: Fix video capture being transparent on Wayland | expand

Commit Message

Mavroudis Chatzilazaridis June 14, 2025, 1:45 p.m. UTC
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(-)
diff mbox series

Patch

diff --git a/utils/qvidcap/v4l2-convert.glsl b/utils/qvidcap/v4l2-convert.glsl
index 8bd5694b..e6e6794c 100644
--- a/utils/qvidcap/v4l2-convert.glsl
+++ b/utils/qvidcap/v4l2-convert.glsl
@@ -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);