[vlc-devel] [PATCH] direct3d11: avoid variable shadowing

Steve Lhomme robux4 at videolabs.io
Tue Oct 17 14:19:39 CEST 2017


---
 modules/video_output/win32/direct3d11.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 5914d65487..10494f99d4 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -2992,9 +2992,9 @@ static int Direct3D11MapSubpicture(vout_display_t *vd, int *subpicture_region_co
             if (AllocateTextures(vd, sys->d3dregion_format, &r->fmt, 1, textures)) {
                 msg_Err(vd, "Failed to allocate %dx%d texture for OSD",
                         r->fmt.i_visible_width, r->fmt.i_visible_height);
-                for (int i=0; i<D3D11_MAX_SHADER_VIEW; i++)
-                    if (textures[i])
-                        ID3D11Texture2D_Release(textures[i]);
+                for (int j=0; j<D3D11_MAX_SHADER_VIEW; j++)
+                    if (textures[j])
+                        ID3D11Texture2D_Release(textures[j]);
                 free(d3dquad);
                 continue;
             }
-- 
2.14.2



More information about the vlc-devel mailing list