| Index: src/gpu/gl/GrGLTexture.cpp
|
| diff --git a/src/gpu/gl/GrGLTexture.cpp b/src/gpu/gl/GrGLTexture.cpp
|
| index 39a8d9279feef49637882b5e7a15a1c0e59305d5..44b3df8872377dfb6cffbacb3c435495e231561e 100644
|
| --- a/src/gpu/gl/GrGLTexture.cpp
|
| +++ b/src/gpu/gl/GrGLTexture.cpp
|
| @@ -37,6 +37,9 @@ void GrGLTexture::init(const GrSurfaceDesc& desc, const IDDesc& idDesc) {
|
| void GrGLTexture::onRelease() {
|
| if (fInfo.fID) {
|
| if (GrGpuResource::kBorrowed_LifeCycle != fTextureIDLifecycle) {
|
| + if (desc().fTextureStorageAllocator) {
|
| + desc().fTextureStorageAllocator->deallocateTextureStorage(fInfo.fID);
|
| + }
|
| GL_CALL(DeleteTextures(1, &fInfo.fID));
|
| }
|
| fInfo.fID = 0;
|
|
|