Belt and suspenders for colors in DrawAtlasBatch test
Review URL: https://codereview.chromium.org/1290253002
This commit is contained in:
parent
abd30f54b7
commit
00ba1e07f3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user