diff options
Diffstat (limited to 'src/views/mac/SkNSView.mm')
-rw-r--r-- | src/views/mac/SkNSView.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/mac/SkNSView.mm b/src/views/mac/SkNSView.mm index 3a096f684a..73b353f15d 100644 --- a/src/views/mac/SkNSView.mm +++ b/src/views/mac/SkNSView.mm @@ -344,7 +344,7 @@ static CGLContextObj createGLContext(int msaaSampleCount) { CGLPixelFormatObj format; GLint npix = 0; if (msaaSampleCount > 0) { - static int kAttributeCount = SK_ARRAY_COUNT(attributes); + static const int kAttributeCount = SK_ARRAY_COUNT(attributes); CGLPixelFormatAttribute msaaAttributes[kAttributeCount + 5]; memcpy(msaaAttributes, attributes, sizeof(attributes)); SkASSERT(0 == msaaAttributes[kAttributeCount - 1]); |