Commit c05fa125 authored by Laurent Aimar's avatar Laurent Aimar

Fixed broken video with direct3d for some drivers.

parent 2e1e9ce5
...@@ -255,8 +255,6 @@ static void Prepare(vout_display_t *vd, picture_t *picture) ...@@ -255,8 +255,6 @@ static void Prepare(vout_display_t *vd, picture_t *picture)
Direct3DUnlockSurface(picture); Direct3DUnlockSurface(picture);
Direct3DRenderScene(vd, surface); Direct3DRenderScene(vd, surface);
Direct3DLockSurface(picture);
#endif #endif
} }
...@@ -273,10 +271,12 @@ static void Display(vout_display_t *vd, picture_t *picture) ...@@ -273,10 +271,12 @@ static void Display(vout_display_t *vd, picture_t *picture)
if (FAILED(hr)) { if (FAILED(hr)) {
msg_Dbg(vd, "%s:%d (hr=0x%0lX)", __FUNCTION__, __LINE__, hr); msg_Dbg(vd, "%s:%d (hr=0x%0lX)", __FUNCTION__, __LINE__, hr);
} }
#if 0 #if 0
VLC_UNUSED(picture); VLC_UNUSED(picture);
#else #else
/* XXX See Prepare() */ /* XXX See Prepare() */
Direct3DLockSurface(picture);
picture_Release(picture); picture_Release(picture);
#endif #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