summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/hwdec_osx.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-06-30 16:57:17 +0200
committerwm4 <wm4@nowhere>2017-06-30 17:07:55 +0200
commit0c0a06140c8460115d5ce357a8adfc4d8c1bae69 (patch)
tree4a776f3152fa74ed81a0a2397d629edfd8ccdfba /video/out/opengl/hwdec_osx.c
parent91583fccac85880ad2199f50463c095560791d56 (diff)
downloadmpv-0c0a06140c8460115d5ce357a8adfc4d8c1bae69.tar.bz2
mpv-0c0a06140c8460115d5ce357a8adfc4d8c1bae69.tar.xz
vo_opengl: restructure format setup
Instead of setting up a weird swizzle (which is linked to how the internal renderer code works, rather than the generic format code), add per-component mapping to gl_imgfmt_desc. The renderer still computes the weird swizzle, but at least it's confined to itself. Also, it appears the hwdec backends don't need this anymore. It's really nice that the messy init_format() goes away too.
Diffstat (limited to 'video/out/opengl/hwdec_osx.c')
-rw-r--r--video/out/opengl/hwdec_osx.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/video/out/opengl/hwdec_osx.c b/video/out/opengl/hwdec_osx.c
index d4594e2dcc..81cd155cc5 100644
--- a/video/out/opengl/hwdec_osx.c
+++ b/video/out/opengl/hwdec_osx.c
@@ -151,9 +151,6 @@ static int map_frame(struct gl_hwdec *hw, struct mp_image *hw_image,
};
}
- snprintf(out_frame->swizzle, sizeof(out_frame->swizzle), "%s",
- p->desc.swizzle);
-
return 0;
}