Skip to contentSkip to conversation

qvidcap: Fix video capture being transparent on Wayland

PATCH In review Mavroudis Chatzilazaridis 1 participant 2 messages Jun 14, 2025 – Jun 15, 2025 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

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
index 8bd5694b..e6e6794c 100644
@@ -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
#1 lore raw
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(-)