diff options
author | Niklas Haas <git@haasn.xyz> | 2021-03-21 17:18:20 +0100 |
---|---|---|
committer | Niklas Haas <git@haasn.xyz> | 2021-03-21 17:18:20 +0100 |
commit | 6265724f3331e3dee8d9ec2b6639def5004a5fa2 (patch) | |
tree | 34e68c16e401742297ab388e42ab035d0ca2d83a | |
parent | 5824d9fff829f8bb2beebe0b82df88c8e0330115 (diff) | |
download | mpv-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.c | 4 |
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; } |