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.
This commit is contained in:
Niklas Haas 2021-03-21 17:18:20 +01:00
parent 5824d9fff8
commit 6265724f33
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}