[vlc-devel] [PATCH] direct3d11: remove dead code
Steve Lhomme
robux4 at videolabs.io
Fri Jun 23 09:32:05 CEST 2017
The pool configuration is done later for all use cases.
Ref CID #1402665
---
modules/video_output/win32/direct3d11.c | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index a842b73708..243557ae1f 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -681,19 +681,7 @@ static picture_pool_t *Pool(vout_display_t *vd, unsigned pool_size)
if (AllocateTextures(vd, sys->picQuadConfig, &surface_fmt, pool_size, textures))
goto error;
- if (vd->info.is_slow) {
- picture_resource_t resource = {
- .p_sys = &sys->picQuad.picSys,
- .pf_destroy = DestroyDisplayPoolPicture,
- };
-
- picture = picture_NewFromResource(&surface_fmt, &resource);
- if (likely(picture != NULL)) {
- pool_cfg.picture = &picture;
- pool_cfg.lock = Direct3D11MapPoolTexture;
- //pool_cfg.unlock = Direct3D11UnmapPoolTexture;
- }
- } else {
+ if (!vd->info.is_slow) {
HRESULT hr;
ID3D10Multithread *pMultithread;
hr = ID3D11Device_QueryInterface( sys->d3ddevice, &IID_ID3D10Multithread, (void **)&pMultithread);
--
2.12.1
More information about the vlc-devel
mailing list