Fix assertion failure in SkGpuDevice from 8412.
git-svn-id: http://skia.googlecode.com/svn/trunk@8413 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
f51c01328d
commit
db4462566a
@ -484,7 +484,7 @@ inline bool skPaint2GrPaintNoShader(SkGpuDevice* dev,
|
|||||||
SkXfermode::Coeff dm = SkXfermode::kISA_Coeff;
|
SkXfermode::Coeff dm = SkXfermode::kISA_Coeff;
|
||||||
|
|
||||||
SkXfermode* mode = skPaint.getXfermode();
|
SkXfermode* mode = skPaint.getXfermode();
|
||||||
GrEffectRef* xferEffect;
|
GrEffectRef* xferEffect = NULL;
|
||||||
if (SkXfermode::AsNewEffect(mode, dev->context(), &xferEffect, &sm, &dm)) {
|
if (SkXfermode::AsNewEffect(mode, dev->context(), &xferEffect, &sm, &dm)) {
|
||||||
// We're not ready for xfermode effects yet
|
// We're not ready for xfermode effects yet
|
||||||
GrAssert(NULL == xferEffect);
|
GrAssert(NULL == xferEffect);
|
||||||
|
Loading…
Reference in New Issue
Block a user