Commit d5a796ca by Jamie Madill

Fix Renderer11 signed/unsigned warning in 32-bit.

Change-Id: I1e11f54b0ae245cdd7e090ab0748821738ad6314 Reviewed-on: https://chromium-review.googlesource.com/218761Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 76b10c9a
......@@ -1568,17 +1568,17 @@ void Renderer11::markAllStateDirty()
mRenderTargetDescInitialized = false;
ASSERT(mForceSetVertexSamplerStates.size() == mCurVertexSRVs.size());
for (int i = 0; i < mForceSetVertexSamplerStates.size(); i++)
for (size_t vsamplerId = 0; vsamplerId < mForceSetVertexSamplerStates.size(); ++vsamplerId)
{
mForceSetVertexSamplerStates[i] = true;
mCurVertexSRVs[i] = NULL;
mForceSetVertexSamplerStates[vsamplerId] = true;
mCurVertexSRVs[vsamplerId] = NULL;
}
ASSERT(mForceSetPixelSamplerStates.size() == mCurPixelSRVs.size());
for (int i = 0; i < mForceSetPixelSamplerStates.size(); i++)
for (size_t fsamplerId = 0; fsamplerId < mForceSetPixelSamplerStates.size(); ++fsamplerId)
{
mForceSetPixelSamplerStates[i] = true;
mCurPixelSRVs[i] = NULL;
mForceSetPixelSamplerStates[fsamplerId] = true;
mCurPixelSRVs[fsamplerId] = NULL;
}
mForceSetBlendState = true;
......
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