Index: bench/GameBench.cpp |
diff --git a/bench/GameBench.cpp b/bench/GameBench.cpp |
index 839440b612e0dd4ffaa6719be75f866c651caddf..c0a0e1b1b3e21fdab41c8188766442b8adc9b1f3 100644 |
--- a/bench/GameBench.cpp |
+++ b/bench/GameBench.cpp |
@@ -190,9 +190,8 @@ protected: |
canvas->concat(mat); |
if (fUseAtlas) { |
- static int curCell = 0; |
+ const int curCell = i % (kNumAtlasedX * kNumAtlasedY); |
SkIRect src = fAtlasRects[curCell % (kNumAtlasedX)][curCell / (kNumAtlasedX)]; |
- curCell = (curCell + 1) % (kNumAtlasedX*kNumAtlasedY); |
if (fUseDrawVertices) { |
SkPoint uvs[4] = { |