summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2021-03-21 17:18:20 +0100
committerNiklas Haas <git@haasn.xyz>2021-03-21 17:18:20 +0100
commit6265724f3331e3dee8d9ec2b6639def5004a5fa2 (patch)
tree34e68c16e401742297ab388e42ab035d0ca2d83a
parent5824d9fff829f8bb2beebe0b82df88c8e0330115 (diff)
downloadmpv-6265724f3331e3dee8d9ec2b6639def5004a5fa2.tar.bz2
mpv-6265724f3331e3dee8d9ec2b6639def5004a5fa2.tar.xz
vo_gpu: placebo: keep track of texture sample mode
This fixes an issue where dithering was effectively broken on libplacebo versions >= 103 because the dither texture was being sampled with edge-clamped rather than repeating semantics.
-rw-r--r--video/out/placebo/ra_pl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/placebo/ra_pl.c b/video/out/placebo/ra_pl.c
index d8e8729ed3..09ff742d38 100644
--- a/video/out/placebo/ra_pl.c
+++ b/video/out/placebo/ra_pl.c
@@ -189,6 +189,10 @@ static struct ra_tex *tex_create_pl(struct ra *ra,
return NULL;
}
+ // Keep track of these, so we can correctly bind them later
+ ratex->params.src_repeat = params->src_repeat;
+ ratex->params.src_linear = params->src_linear;
+
return ratex;
}