summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.h
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2018-11-14 14:57:36 +0100
committerJan Ekström <jeebjp@gmail.com>2019-04-02 02:05:11 +0300
commit0bea3841539f47150d99677f4a7974fe16398783 (patch)
treec3f7ba8118ec77ebfb23e1c5bb0881f0460c66cf /video/out/wayland_common.h
parent716b8719288321c3eb145c97f11ade24373edcdd (diff)
downloadmpv-0bea3841539f47150d99677f4a7974fe16398783.tar.bz2
mpv-0bea3841539f47150d99677f4a7974fe16398783.tar.xz
cocoa-cb: simplify CGL pixel format creation
i found the old pixel format creation a bit too messy. pixel format attribute arrays and look ups were all over the place, the actual logic what kind of format was created was inscrutable, the software pixel format was hardcoded and no probing was done. i split the attributes into mandatory and optional ones, one mandatory for a hardware and software pixel format each, and moved those to the top of the class. that way new attributes can be easily added to either the mandatory or optional attributes and they don't mess up the actual pixel creation logic any more. furthermore both hardware and software pixel formats are being probed the same way now. to minimise code duplications the probing was moved into its own function.
Diffstat (limited to 'video/out/wayland_common.h')
0 files changed, 0 insertions, 0 deletions