Fix assertion failure in SkGpuDevice from 8412.
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 27 Mar 2013 18:46:16 +0000 (18:46 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 27 Mar 2013 18:46:16 +0000 (18:46 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@8413 2bbb7eff-a529-9590-31e7-b0007b416f81

src/gpu/SkGpuDevice.cpp

index ad65d17214e0492f3c607b015fee8989b8342f1d..6f6608ab62b86b9b0ec9949dff237899a7e767a9 100644 (file)
@@ -484,7 +484,7 @@ inline bool skPaint2GrPaintNoShader(SkGpuDevice* dev,
     SkXfermode::Coeff dm = SkXfermode::kISA_Coeff;
 
     SkXfermode* mode = skPaint.getXfermode();
-    GrEffectRef* xferEffect;
+    GrEffectRef* xferEffect = NULL;
     if (SkXfermode::AsNewEffect(mode, dev->context(), &xferEffect, &sm, &dm)) {
         // We're not ready for xfermode effects yet
         GrAssert(NULL == xferEffect);