diff options
Diffstat (limited to 'gm/rectangletexture.cpp')
-rw-r--r-- | gm/rectangletexture.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gm/rectangletexture.cpp b/gm/rectangletexture.cpp index a603be7bdc..d6bf1fb87e 100644 --- a/gm/rectangletexture.cpp +++ b/gm/rectangletexture.cpp @@ -60,6 +60,9 @@ protected: if (!context) { return nullptr; } + if (context->contextPriv().abandoned()) { + return nullptr; + } GrGpu* gpu = context->contextPriv().getGpu(); if (!gpu) { return nullptr; |