Fix for segmentation fault in xfermodes2 GM.
authorjvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 19 Apr 2013 13:59:52 +0000 (13:59 +0000)
committerjvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 19 Apr 2013 13:59:52 +0000 (13:59 +0000)
Reviewed offline by bsalomon.

git-svn-id: http://skia.googlecode.com/svn/trunk@8766 2bbb7eff-a529-9590-31e7-b0007b416f81

gm/xfermodes2.cpp

index 51c69f6f17a34078fc8b6d95241291755087d326..990ee508d50db931dcd6ea9fc661500c98020ff6 100644 (file)
@@ -86,7 +86,7 @@ protected:
 
 private:
     virtual void onOnceBeforeDraw() SK_OVERRIDE {
-        const uint32_t kCheckData[] = {
+        static const uint32_t kCheckData[] = {
             SkPackARGB32(0xFF, 0x40, 0x40, 0x40),
             SkPackARGB32(0xFF, 0xD0, 0xD0, 0xD0),
             SkPackARGB32(0xFF, 0xD0, 0xD0, 0xD0),