summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/osd.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/osd.c')
-rw-r--r--video/out/opengl/osd.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/video/out/opengl/osd.c b/video/out/opengl/osd.c
index 8b178f212d..89820693ab 100644
--- a/video/out/opengl/osd.c
+++ b/video/out/opengl/osd.c
@@ -66,7 +66,6 @@ struct mpgl_osd {
struct osd_state *osd;
struct ra *ra;
GL *gl;
- bool use_pbo;
struct mpgl_osd_part *parts[MAX_OSD_PARTS];
const struct ra_format *fmt_table[SUBBITMAP_COUNT];
bool formats[SUBBITMAP_COUNT];
@@ -115,11 +114,6 @@ void mpgl_osd_destroy(struct mpgl_osd *ctx)
talloc_free(ctx);
}
-void mpgl_osd_set_options(struct mpgl_osd *ctx, bool pbo)
-{
- ctx->use_pbo = pbo;
-}
-
static int next_pow2(int v)
{
for (int x = 0; x < 30; x++) {
@@ -175,8 +169,6 @@ static bool upload_osd(struct mpgl_osd *ctx, struct mpgl_osd_part *osd,
goto done;
}
- osd->texture->use_pbo = ctx->use_pbo;
-
struct mp_rect rc = {0, 0, imgs->packed_w, imgs->packed_h};
ra->fns->tex_upload(ra, osd->texture, imgs->packed->planes[0],
imgs->packed->stride[0], &rc, RA_TEX_UPLOAD_DISCARD,