aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-02-11 14:28:47 +0100
committerdec05eba <dec05eba@protonmail.com>2024-02-11 14:28:47 +0100
commit164145db29e76725a6b0a6ef1d0b0e5bc88fdd70 (patch)
treea6ff58585d4105691aa29d0e01b92c2a09fc541b
parentcad85fcf25077d9818b4051d045b7c81f0109422 (diff)
Window capture: fix chroma not centered in video
-rw-r--r--src/color_conversion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/color_conversion.c b/src/color_conversion.c
index 0446c85..6754520 100644
--- a/src/color_conversion.c
+++ b/src/color_conversion.c
@@ -208,7 +208,7 @@ static unsigned int load_shader_uv(gsr_shader *shader, gsr_egl *egl, gsr_color_u
"void main() \n"
"{ \n"
" texcoords_out = (vec4(texcoords.x - 0.5, texcoords.y - 0.5, 0.0, 0.0) * rotate_z(rotation)).xy + vec2(0.5, 0.5); \n"
- " gl_Position = vec4(offset.x, offset.y, 0.0, 0.0) + vec4(pos.x, pos.y, 0.0, 1.0) * vec4(0.5, 0.5, 1.0, 1.0) - vec4(0.5, 0.5, 0.0, 0.0); \n"
+ " gl_Position = (vec4(offset.x, offset.y, 0.0, 0.0) + vec4(pos.x, pos.y, 0.0, 1.0)) * vec4(0.5, 0.5, 1.0, 1.0) - vec4(0.5, 0.5, 0.0, 0.0); \n"
"} \n");
char fragment_shader[2048];