[vlc-commits] d3d11: allocate textures for rendering

Steve Lhomme git at videolan.org
Thu Aug 13 14:07:55 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Aug 12 11:42:55 2020 +0200| [80fc1e8d8bae7bd39491f5bb3499e3d2ce65121a] | committer: Steve Lhomme

d3d11: allocate textures for rendering

Which is needed for video processing. We don't use this function to allocate
the decoder texture.

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

 modules/video_chroma/d3d11_fmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_chroma/d3d11_fmt.c b/modules/video_chroma/d3d11_fmt.c
index c7b5db2472..322320973b 100644
--- a/modules/video_chroma/d3d11_fmt.c
+++ b/modules/video_chroma/d3d11_fmt.c
@@ -752,7 +752,7 @@ int AllocateTextures( vlc_object_t *obj, d3d11_device_t *d3d_dev,
     texDesc.BindFlags = D3D11_BIND_SHADER_RESOURCE;
     texDesc.ArraySize = 1;
     if (is_d3d11_opaque(fmt->i_chroma)) {
-        texDesc.BindFlags |= D3D11_BIND_DECODER;
+        texDesc.BindFlags |= D3D11_BIND_RENDER_TARGET;
         texDesc.Usage = D3D11_USAGE_DEFAULT;
         texDesc.CPUAccessFlags = 0;
     } else {



More information about the vlc-commits mailing list