diff options
author | wm4 <wm4@mplayer2.org> | 2011-10-28 22:06:33 +0200 |
---|---|---|
committer | wm4 <wm4@mplayer2.org> | 2012-03-17 20:58:16 +0100 |
commit | e1826826f95a93ecb1073d9c78f01139068c2733 (patch) | |
tree | 16291d637724c589be3be928e1a3cfdee90737fd /libvo/video_out.c | |
parent | 83889cebbc78e4a9087d95633ded1d65d5690c24 (diff) | |
download | mpv-e1826826f95a93ecb1073d9c78f01139068c2733.tar.bz2 mpv-e1826826f95a93ecb1073d9c78f01139068c2733.tar.xz |
vo_direct3d: make VO re-config faster by not recreating the whole D3D state
The D3D state (the IDirect3DDevice9 and all textures and buffers) were
released and recreated in the config() function. This is completely
unnecessary. Instead explicitly handle changes. The video surface is only
reallocated if the video format or the video size changes. The OSD texture
is only reallocated if the window size is increased. The EOSD texture is
not released. Since the resize code is reused to deal with reconfig
changes, some of these improvements (and possible bugs) apply to normal
window resizing as well.
Diffstat (limited to 'libvo/video_out.c')
0 files changed, 0 insertions, 0 deletions