diff options
author | wm4 <wm4@nowhere> | 2013-11-18 14:02:14 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-01 19:26:30 +0100 |
commit | dc1aaf695f3f8ef813f43be385c2ee97ddd6eeb2 (patch) | |
tree | 9a9ee07d6282f2df2dbc88e1d94ac4bbaea31891 | |
parent | b24fd52268e4e01515aa09b244c4762719dcf316 (diff) | |
download | mpv-dc1aaf695f3f8ef813f43be385c2ee97ddd6eeb2.tar.bz2 mpv-dc1aaf695f3f8ef813f43be385c2ee97ddd6eeb2.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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c index bd2b5703ff..5274f95546 100644 --- a/video/out/vo_vdpau.c +++ b/video/out/vo_vdpau.c @@ -930,11 +930,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, }; |