use sk_bzero to init level, since I got the number of 0s wrong using { }
git-svn-id: http://skia.googlecode.com/svn/trunk@10308 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
87e74b6f03
commit
2c38fed29d
@ -31,7 +31,8 @@ static void TestMipMap(skiatest::Reporter* reporter) {
|
||||
REPORTER_ASSERT(reporter, !mm->extractLevel(SK_Scalar1, NULL));
|
||||
REPORTER_ASSERT(reporter, !mm->extractLevel(SK_Scalar1 * 2, NULL));
|
||||
|
||||
SkMipMap::Level prevLevel = { 0, 0, 0, 0 };
|
||||
SkMipMap::Level prevLevel;
|
||||
sk_bzero(&prevLevel, sizeof(prevLevel));
|
||||
|
||||
SkScalar scale = SK_Scalar1;
|
||||
for (int j = 0; j < 30; ++j) {
|
||||
|
Loading…
Reference in New Issue
Block a user