| Index: src/gpu/gl/GrGLTexture.cpp
|
| diff --git a/src/gpu/gl/GrGLTexture.cpp b/src/gpu/gl/GrGLTexture.cpp
|
| index aff91ebe223fb113ca5e986f45cb50e96b952494..ea02274ad72ad046295c78e70ba1effbcafcbdee 100644
|
| --- a/src/gpu/gl/GrGLTexture.cpp
|
| +++ b/src/gpu/gl/GrGLTexture.cpp
|
| @@ -58,13 +58,7 @@ void GrGLTexture::init(const GrSurfaceDesc& desc, const IDDesc& idDesc) {
|
| void GrGLTexture::onRelease() {
|
| if (fInfo.fID) {
|
| if (GrGpuResource::kBorrowed_LifeCycle != fTextureIDLifecycle) {
|
| - if (this->desc().fTextureStorageAllocator.fDeallocateTextureStorage) {
|
| - this->desc().fTextureStorageAllocator.fDeallocateTextureStorage(
|
| - this->desc().fTextureStorageAllocator.fCtx,
|
| - reinterpret_cast<GrBackendObject>(&fInfo));
|
| - } else {
|
| - GL_CALL(DeleteTextures(1, &fInfo.fID));
|
| - }
|
| + GL_CALL(DeleteTextures(1, &fInfo.fID));
|
| }
|
| fInfo.fID = 0;
|
| }
|
|
|