Commit 9b2606c3 authored by Laurent Aimar's avatar Laurent Aimar Committed by Jean-Baptiste Kempf

Fixed broken video with direct3d for some drivers.

(cherry picked from commit c05fa125)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5f1aa05d
......@@ -252,8 +252,6 @@ static void Prepare(vout_display_t *vd, picture_t *picture)
Direct3DUnlockSurface(picture);
Direct3DRenderScene(vd, surface);
Direct3DLockSurface(picture);
#endif
}
......@@ -270,10 +268,12 @@ static void Display(vout_display_t *vd, picture_t *picture)
if (FAILED(hr)) {
msg_Dbg(vd, "%s:%d (hr=0x%0lX)", __FUNCTION__, __LINE__, hr);
}
#if 0
VLC_UNUSED(picture);
#else
/* XXX See Prepare() */
Direct3DLockSurface(picture);
picture_Release(picture);
#endif
......
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