Fix for segmentation fault in xfermodes2 GM.
Reviewed offline by bsalomon.
git-svn-id: http://skia.googlecode.com/svn/trunk@8766 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/xfermodes2.cpp b/gm/xfermodes2.cpp
index 51c69f6..990ee50 100644
--- a/gm/xfermodes2.cpp
+++ b/gm/xfermodes2.cpp
@@ -86,7 +86,7 @@
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),