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