commit | 10a9fb86a9cd11f7fd590410e2aa0906587555e6 | [log] [tgz] |
---|---|---|
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Jan 02 19:29:57 2013 +0000 |
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Jan 02 19:29:57 2013 +0000 |
tree | cecefe87ad3c114acdd347b9cf2c97989e9f1d4b | |
parent | a59df04b68f3195c23e79ffe731bc5be2a6049f8 [diff] [blame] |
Ensure that GrCacheID::Key instances are fully initialized. R=robertphillips@google.com Review URL: https://codereview.appspot.com/7036046 git-svn-id: http://skia.googlecode.com/svn/trunk@6971 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrStencilBuffer.cpp b/src/gpu/GrStencilBuffer.cpp index 623861d..865961a 100644 --- a/src/gpu/GrStencilBuffer.cpp +++ b/src/gpu/GrStencilBuffer.cpp
@@ -29,6 +29,7 @@ keyData[0] = width; keyData[1] = height; keyData[2] = sampleCnt; + memset(keyData + 3, 0, sizeof(key) - 3 * sizeof(uint32_t)); GR_STATIC_ASSERT(sizeof(key) >= 3 * sizeof(uint32_t)); cacheID->reset(gStencilBufferDomain, key); }