| Index: src/gpu/gl/GrGLStencilAttachment.cpp
|
| diff --git a/src/gpu/gl/GrGLStencilAttachment.cpp b/src/gpu/gl/GrGLStencilAttachment.cpp
|
| index 4ea08c846936db70fb889648b0d474ac22297d09..d72729dc10993240ef2ce2a04f844dc24bdc6e22 100644
|
| --- a/src/gpu/gl/GrGLStencilAttachment.cpp
|
| +++ b/src/gpu/gl/GrGLStencilAttachment.cpp
|
| @@ -18,7 +18,7 @@ size_t GrGLStencilAttachment::onGpuMemorySize() const {
|
| }
|
|
|
| void GrGLStencilAttachment::onRelease() {
|
| - if (0 != fRenderbufferID && !this->isWrapped()) {
|
| + if (0 != fRenderbufferID && this->shouldFreeResources()) {
|
| GrGLGpu* gpuGL = (GrGLGpu*) this->getGpu();
|
| const GrGLInterface* gl = gpuGL->glInterface();
|
| GR_GL_CALL(gl, DeleteRenderbuffers(1, &fRenderbufferID));
|
|
|