[vlc-commits] direct3d11: fix crash when displaying RGB32
Steve Lhomme
git at videolan.org
Mon Oct 30 11:22:50 CET 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Mon Oct 30 11:20:42 2017 +0100| [3b8c0a2cad14a8c57b7470c0596677e03ef9c741] | committer: Jean-Baptiste Kempf
direct3d11: fix crash when displaying RGB32
The mapping to the texture sampler was missing
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3b8c0a2cad14a8c57b7470c0596677e03ef9c741
---
modules/video_output/win32/direct3d11.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index bb4b616bde..25ccb4da30 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1845,6 +1845,7 @@ static HRESULT CompilePixelShader(vout_display_t *vd, const d3d_format_t *format
break;
case DXGI_FORMAT_R8G8B8A8_UNORM:
case DXGI_FORMAT_B8G8R8A8_UNORM:
+ case DXGI_FORMAT_B8G8R8X8_UNORM:
case DXGI_FORMAT_B5G6R5_UNORM:
psz_sampler =
"sample = shaderTexture[0].Sample(SampleType, In.Texture);";
More information about the vlc-commits
mailing list