[vlc-commits] direct3d11: avoid variable shadowing

Steve Lhomme git at videolan.org
Tue Oct 17 18:28:05 CEST 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Oct 17 14:19:39 2017 +0200| [d12a4c9ff8388c1bacee8d2675bb704953106a04] | committer: Jean-Baptiste Kempf

direct3d11: avoid variable shadowing

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 09200b51f8..15ce7c63ed 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -2943,9 +2943,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;
             }



More information about the vlc-commits mailing list