Commit f7b10164 by Cooper Partin Committed by Geoff Lang

Fixed variable shadowing warnings

Change-Id: I7cf9e09f4003991e44195bedfe58891288541f81 Reviewed-on: https://chromium-review.googlesource.com/249432Reviewed-by: 's avatarAustin Kinross <aukinros@microsoft.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent d8d58301
...@@ -604,10 +604,10 @@ gl::Error Renderer11::generateSwizzle(gl::Texture *texture) ...@@ -604,10 +604,10 @@ gl::Error Renderer11::generateSwizzle(gl::Texture *texture)
if (texStorage) if (texStorage)
{ {
TextureStorage11 *storage11 = TextureStorage11::makeTextureStorage11(texStorage); TextureStorage11 *storage11 = TextureStorage11::makeTextureStorage11(texStorage);
gl::Error error = storage11->generateSwizzles(texture->getSamplerState().swizzleRed, error = storage11->generateSwizzles(texture->getSamplerState().swizzleRed,
texture->getSamplerState().swizzleGreen, texture->getSamplerState().swizzleGreen,
texture->getSamplerState().swizzleBlue, texture->getSamplerState().swizzleBlue,
texture->getSamplerState().swizzleAlpha); texture->getSamplerState().swizzleAlpha);
if (error.isError()) if (error.isError())
{ {
return error; return error;
...@@ -643,7 +643,7 @@ gl::Error Renderer11::setSamplerState(gl::SamplerType type, int index, gl::Textu ...@@ -643,7 +643,7 @@ gl::Error Renderer11::setSamplerState(gl::SamplerType type, int index, gl::Textu
if (mForceSetPixelSamplerStates[index] || memcmp(&samplerStateInternal, &mCurPixelSamplerStates[index], sizeof(gl::SamplerState)) != 0) if (mForceSetPixelSamplerStates[index] || memcmp(&samplerStateInternal, &mCurPixelSamplerStates[index], sizeof(gl::SamplerState)) != 0)
{ {
ID3D11SamplerState *dxSamplerState = NULL; ID3D11SamplerState *dxSamplerState = NULL;
gl::Error error = mStateCache.getSamplerState(samplerStateInternal, &dxSamplerState); error = mStateCache.getSamplerState(samplerStateInternal, &dxSamplerState);
if (error.isError()) if (error.isError())
{ {
return error; return error;
...@@ -664,7 +664,7 @@ gl::Error Renderer11::setSamplerState(gl::SamplerType type, int index, gl::Textu ...@@ -664,7 +664,7 @@ gl::Error Renderer11::setSamplerState(gl::SamplerType type, int index, gl::Textu
if (mForceSetVertexSamplerStates[index] || memcmp(&samplerStateInternal, &mCurVertexSamplerStates[index], sizeof(gl::SamplerState)) != 0) if (mForceSetVertexSamplerStates[index] || memcmp(&samplerStateInternal, &mCurVertexSamplerStates[index], sizeof(gl::SamplerState)) != 0)
{ {
ID3D11SamplerState *dxSamplerState = NULL; ID3D11SamplerState *dxSamplerState = NULL;
gl::Error error = mStateCache.getSamplerState(samplerStateInternal, &dxSamplerState); error = mStateCache.getSamplerState(samplerStateInternal, &dxSamplerState);
if (error.isError()) if (error.isError())
{ {
return error; return error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment