diff options
Diffstat (limited to 'tools/gpu')
-rw-r--r-- | tools/gpu/GrTest.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/gpu/GrTest.cpp b/tools/gpu/GrTest.cpp index c483a22aac..241bbc2f60 100644 --- a/tools/gpu/GrTest.cpp +++ b/tools/gpu/GrTest.cpp @@ -94,7 +94,10 @@ void GrContext::setTextBlobCacheLimit_ForTesting(size_t bytes) { } void GrContext::setTextContextAtlasSizes_ForTesting(const GrDrawOpAtlasConfig* configs) { - fFullAtlasManager->setAtlasSizes_ForTesting(configs); + GrAtlasManager* atlasManager = this->contextPriv().getFullAtlasManager(); + if (atlasManager) { + atlasManager->setAtlasSizes_ForTesting(configs); + } } /////////////////////////////////////////////////////////////////////////////// |