summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-18 14:02:14 +0100
committerwm4 <wm4@nowhere>2013-11-18 14:21:01 +0100
commitb1405f3cff1661d1ef6fd8103baed6da3c9eecff (patch)
tree211efcdf66a5c7627f2256e7408275c7e1cd40a4
parent1151dac5f0e0fda012ce228f5a358c72b26fffe3 (diff)
downloadmpv-b1405f3cff1661d1ef6fd8103baed6da3c9eecff.tar.bz2
mpv-b1405f3cff1661d1ef6fd8103baed6da3c9eecff.tar.xz
vo_vdpau: don't calculate destination alpha when drawing OSD
Same as MPlayer svn commit r36515 "Chose cheaper alpha blend equation." No idea if this is actually faster, but can't hurt.
-rw-r--r--video/out/vo_vdpau.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c
index 8181a645f2..6845beea08 100644
--- a/video/out/vo_vdpau.c
+++ b/video/out/vo_vdpau.c
@@ -840,11 +840,11 @@ static void draw_osd_part(struct vo *vo, int index)
.blend_factor_source_color =
VDP_OUTPUT_SURFACE_RENDER_BLEND_FACTOR_SRC_ALPHA,
.blend_factor_source_alpha =
- VDP_OUTPUT_SURFACE_RENDER_BLEND_FACTOR_ONE,
+ VDP_OUTPUT_SURFACE_RENDER_BLEND_FACTOR_ZERO,
.blend_factor_destination_color =
VDP_OUTPUT_SURFACE_RENDER_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA,
.blend_factor_destination_alpha =
- VDP_OUTPUT_SURFACE_RENDER_BLEND_FACTOR_SRC_ALPHA,
+ VDP_OUTPUT_SURFACE_RENDER_BLEND_FACTOR_ZERO,
.blend_equation_color = VDP_OUTPUT_SURFACE_RENDER_BLEND_EQUATION_ADD,
.blend_equation_alpha = VDP_OUTPUT_SURFACE_RENDER_BLEND_EQUATION_ADD,
};