diff options
author | Brian Paul <[email protected]> | 2013-10-29 14:11:01 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-10-31 08:21:58 -0600 |
commit | 717621acff73784adec35df81470a7adcb2e7ff0 (patch) | |
tree | c1c23953376dec027663b4bb216e23d6192fe610 /src/mesa/main/vdpau.c | |
parent | 010f8762e8b80fac43e18a9feaad7a37e8097be6 (diff) |
mesa: fix some MSVC signed/unsigned compiler warnings
Diffstat (limited to 'src/mesa/main/vdpau.c')
-rw-r--r-- | src/mesa/main/vdpau.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/main/vdpau.c b/src/mesa/main/vdpau.c index e21a26b433d..3597576076f 100644 --- a/src/mesa/main/vdpau.c +++ b/src/mesa/main/vdpau.c @@ -324,7 +324,7 @@ void GLAPIENTRY _mesa_VDPAUMapSurfacesNV(GLsizei numSurfaces, const GLintptr *surfaces) { GET_CURRENT_CONTEXT(ctx); - int i, j; + int i; if (!ctx->vdpDevice || !ctx->vdpGetProcAddress || !ctx->vdpSurfaces) { _mesa_error(ctx, GL_INVALID_OPERATION, "VDPAUUnmapSurfacesNV"); @@ -348,6 +348,7 @@ _mesa_VDPAUMapSurfacesNV(GLsizei numSurfaces, const GLintptr *surfaces) for (i = 0; i < numSurfaces; ++i) { struct vdp_surface *surf = (struct vdp_surface *)surfaces[i]; unsigned numTextureNames = surf->output ? 1 : 4; + unsigned j; for (j = 0; j < numTextureNames; ++j) { struct gl_texture_object *tex = surf->textures[j]; @@ -377,7 +378,7 @@ void GLAPIENTRY _mesa_VDPAUUnmapSurfacesNV(GLsizei numSurfaces, const GLintptr *surfaces) { GET_CURRENT_CONTEXT(ctx); - int i, j; + int i; if (!ctx->vdpDevice || !ctx->vdpGetProcAddress || !ctx->vdpSurfaces) { _mesa_error(ctx, GL_INVALID_OPERATION, "VDPAUUnmapSurfacesNV"); @@ -401,6 +402,7 @@ _mesa_VDPAUUnmapSurfacesNV(GLsizei numSurfaces, const GLintptr *surfaces) for (i = 0; i < numSurfaces; ++i) { struct vdp_surface *surf = (struct vdp_surface *)surfaces[i]; unsigned numTextureNames = surf->output ? 1 : 4; + unsigned j; for (j = 0; j < numTextureNames; ++j) { struct gl_texture_object *tex = surf->textures[j]; |