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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/video/out/opengl/osd.c b/video/out/opengl/osd.c
index 02a0fde329..bf03d34e90 100644
--- a/video/out/opengl/osd.c
+++ b/video/out/opengl/osd.c
@@ -64,7 +64,6 @@ struct mpgl_osd {
struct osd_state *osd;
GL *gl;
bool use_pbo;
- bool scaled;
struct mpgl_osd_part *parts[MAX_OSD_PARTS];
const struct gl_format *fmt_table[SUBBITMAP_COUNT];
bool formats[SUBBITMAP_COUNT];
@@ -200,7 +199,7 @@ static bool upload_osd(struct mpgl_osd *ctx, struct mpgl_osd_part *osd,
GL *gl = ctx->gl;
// assume 2x2 filter on scaling
- osd->packer->padding = ctx->scaled || imgs->scaled;
+ osd->packer->padding = imgs->scaled;
int r = packer_pack_from_subbitmaps(osd->packer, imgs);
if (r < 0) {
MP_ERR(ctx, "OSD bitmaps do not fit on a surface with the maximum "