diff options
Diffstat (limited to 'src/gpu/gl/GrGLTexture.cpp')
-rw-r--r-- | src/gpu/gl/GrGLTexture.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gpu/gl/GrGLTexture.cpp b/src/gpu/gl/GrGLTexture.cpp index 864547ae26..39a8d9279f 100644 --- a/src/gpu/gl/GrGLTexture.cpp +++ b/src/gpu/gl/GrGLTexture.cpp @@ -37,13 +37,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; } |