| Index: include/gpu/GrContextFactory.h
|
| diff --git a/include/gpu/GrContextFactory.h b/include/gpu/GrContextFactory.h
|
| index 01e0239b1a16d966587994263c1f4290bf246e94..66b6de2f1573bc05f6b3bf783bbd51971a840bf5 100644
|
| --- a/include/gpu/GrContextFactory.h
|
| +++ b/include/gpu/GrContextFactory.h
|
| @@ -107,7 +107,11 @@ public:
|
|
|
| void abandonContexts() {
|
| for (int i = 0; i < fContexts.count(); ++i) {
|
| - SkSafeSetNull(fContexts[i].fGLContext);
|
| + if (fContexts[i].fGLContext) {
|
| + fContexts[i].fGLContext->testAbandon();
|
| + fContexts[i].fGLContext->unref();
|
| + fContexts[i].fGLContext = NULL;
|
| + }
|
| fContexts[i].fGrContext->abandonContext();
|
| }
|
| }
|
|
|