Fix assert in SkShadowVertices constructor
authorBrian Salomon <bsalomon@google.com>
Tue, 31 Jan 2017 16:33:11 +0000 (11:33 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Tue, 31 Jan 2017 17:02:21 +0000 (17:02 +0000)
Change-Id: Icedbe70079d41234c98330af64d71a4e60b67f1c
Reviewed-on: https://skia-review.googlesource.com/7796
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>

src/utils/SkShadowTessellator.h

index 301b684..63e7bdc 100755 (executable)
@@ -56,7 +56,7 @@ private:
             , fPositions(std::move(positions))
             , fColors(std::move(colors))
             , fIndices(std::move(indices)) {
-        SkASSERT(SkToBool(indices) == SkToBool(indexCnt));
+        SkASSERT(SkToBool(fIndices) == SkToBool(indexCnt));
     }
 
     int fVertexCnt;