[vlc-commits] d3d11_shaders: fix bogus error returned when the shader compilation fails
Steve Lhomme
git at videolan.org
Mon Aug 6 14:15:31 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Aug 6 13:10:23 2018 +0200| [b6bb27c8301b5571b16885ffac7f33c9f9cf8d4a] | committer: Jean-Baptiste Kempf
d3d11_shaders: fix bogus error returned when the shader compilation fails
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b6bb27c8301b5571b16885ffac7f33c9f9cf8d4a
---
modules/video_output/win32/d3d11_shaders.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_output/win32/d3d11_shaders.c b/modules/video_output/win32/d3d11_shaders.c
index 70ff73c933..6295797fa4 100644
--- a/modules/video_output/win32/d3d11_shaders.c
+++ b/modules/video_output/win32/d3d11_shaders.c
@@ -706,7 +706,7 @@ static HRESULT D3D11_CompileVertexShader(vlc_object_t *obj, d3d11_handle_t *hd3d
d3d11_device_t *d3d_dev, const char *psz_shader,
d3d_vshader_t *output)
{
- HRESULT hr;
+ HRESULT hr = E_FAIL;
ID3DBlob *pVSBlob = D3D11_CompileShader(obj, hd3d, d3d_dev, psz_shader, false);
if (!pVSBlob)
goto error;
More information about the vlc-commits
mailing list