diff options
Diffstat (limited to 'tools/gpu')
-rw-r--r-- | tools/gpu/GrTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/gpu/GrTest.cpp b/tools/gpu/GrTest.cpp index 311f318b9f..ec07758db2 100644 --- a/tools/gpu/GrTest.cpp +++ b/tools/gpu/GrTest.cpp @@ -130,9 +130,9 @@ sk_sp<SkImage> GrContextPriv::getFontAtlasImage_ForTesting(GrMaskFormat format, return nullptr; } - unsigned int numProxies; - const sk_sp<GrTextureProxy>* proxies = atlasManager->getProxies(format, &numProxies); - if (index >= numProxies || !proxies[index]) { + unsigned int numActiveProxies; + const sk_sp<GrTextureProxy>* proxies = atlasManager->getProxies(format, &numActiveProxies); + if (index >= numActiveProxies || !proxies || !proxies[index]) { return nullptr; } |