Commit d3bc255c authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

direct3d9: the surface allocated from the pool needs to have the decoder size

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c1591aa1
......@@ -298,8 +298,8 @@ static picture_pool_t *Pool(vout_display_t *vd, unsigned count)
goto error;
HRESULT hr = IDirect3DDevice9_CreateOffscreenPlainSurface(vd->sys->d3ddev,
vd->fmt.i_visible_width,
vd->fmt.i_visible_height,
vd->fmt.i_width,
vd->fmt.i_height,
MAKEFOURCC('N','V','1','2'),
D3DPOOL_DEFAULT,
&picsys->surface,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment