| Index: src/gpu/gl/GrGLPathRange.cpp
|
| diff --git a/src/gpu/gl/GrGLPathRange.cpp b/src/gpu/gl/GrGLPathRange.cpp
|
| index b577d896192d41cf1c07c0374f10d51f897412f3..071fa4269e871db0aece37ef0fd82093819a36b6 100644
|
| --- a/src/gpu/gl/GrGLPathRange.cpp
|
| +++ b/src/gpu/gl/GrGLPathRange.cpp
|
| @@ -89,7 +89,7 @@ void GrGLPathRange::onInitPath(int index, const SkPath& origSkPath) const {
|
| void GrGLPathRange::onRelease() {
|
| SkASSERT(this->getGpu());
|
|
|
| - if (0 != fBasePathID && !this->isWrapped()) {
|
| + if (0 != fBasePathID && this->shouldFreeResources()) {
|
| static_cast<GrGLGpu*>(this->getGpu())->glPathRendering()->deletePaths(fBasePathID,
|
| this->getNumPaths());
|
| fBasePathID = 0;
|
|
|