vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Mon Feb 19 12:37:04 
2018 +0100| [3c68fead20d1680aac5dc557250c3ff2b7fa298d] | committer: Steve Lhomme

direct3d11: only lock the picture if it's plane based

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3c68fead20d1680aac5dc557250c3ff2b7fa298d
---

 modules/video_output/win32/direct3d11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/win32/direct3d11.c 
b/modules/video_output/win32/direct3d11.c
index c7fe0f4b68..a35fbcb240 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -661,7 +661,7 @@ static picture_pool_t *Pool(vout_display_t *vd, unsigned 
pool_size)
             .picture       = pictures,
             .picture_count = pool_size,
         };
-        if (vd->info.is_slow) {
+        if (vd->info.is_slow && !is_d3d11_opaque(surface_fmt.i_chroma)) {
             pool_cfg.lock          = Direct3D11MapPoolTexture;
             //pool_cfg.unlock        = Direct3D11UnmapPoolTexture;
         }

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to