1
0
mirror of https://github.com/jojo61/vdr-plugin-softhdcuvid.git synced 2023-10-10 13:37:41 +02:00

Support libplacebo API 229

This commit is contained in:
jojo61 2023-02-18 08:45:32 +01:00
parent 58c39d51f4
commit 7b41b9b45a

View File

@ -4412,7 +4412,7 @@ static void CuvidDisplayFrame(void) {
if (posd) { if (posd) {
pl_tex_upload(p->gpu, &(struct pl_tex_transfer_params){ pl_tex_upload(p->gpu, &(struct pl_tex_transfer_params){
// upload OSD // upload OSD
#if PL_API_VER > 229 #if PL_API_VER >= 229
.tex = osdoverlay.tex, .tex = osdoverlay.tex,
#else #else
.tex = osdoverlay.plane.texture, .tex = osdoverlay.plane.texture,
@ -5723,7 +5723,7 @@ void exit_display() {
return; return;
} }
pl_gpu_finish(p->gpu); pl_gpu_finish(p->gpu);
#if PL_API_VER > 229 #if PL_API_VER >= 229
if (osdoverlay.tex) if (osdoverlay.tex)
pl_tex_destroy(p->gpu, &osdoverlay.tex); pl_tex_destroy(p->gpu, &osdoverlay.tex);
#else #else