diff options
author | jvanverth <jvanverth@google.com> | 2015-08-13 13:41:03 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-13 13:41:03 -0700 |
commit | 00ba1e07f3a7200c0e97aaea88b5963edb42f0f7 (patch) | |
tree | 43d8cae97ee8256ca2051456e74c2eff708cbc54 | |
parent | abd30f54b7ff1704a8930c4307ea242d09425d02 (diff) |
Belt and suspenders for colors in DrawAtlasBatch test
Review URL: https://codereview.chromium.org/1290253002
-rw-r--r-- | src/gpu/batches/GrDrawAtlasBatch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/batches/GrDrawAtlasBatch.cpp b/src/gpu/batches/GrDrawAtlasBatch.cpp index 28c6922d99..487580c39d 100644 --- a/src/gpu/batches/GrDrawAtlasBatch.cpp +++ b/src/gpu/batches/GrDrawAtlasBatch.cpp @@ -251,7 +251,7 @@ DRAW_BATCH_TEST_DEFINE(GrDrawAtlasBatch) { GrDrawAtlasBatch::Geometry geometry; geometry.fColor = GrRandomColor(random); return GrDrawAtlasBatch::Create(geometry, viewMatrix, spriteCount, xforms.begin(), - texRects.begin(), colors.begin()); + texRects.begin(), hasColors ? colors.begin() : nullptr); } #endif |