diff options
Diffstat (limited to 'src/gpu/gl/GrGLGpu.cpp')
-rw-r--r-- | src/gpu/gl/GrGLGpu.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp index 97aa4ac03a..ea7be0ef93 100644 --- a/src/gpu/gl/GrGLGpu.cpp +++ b/src/gpu/gl/GrGLGpu.cpp @@ -4428,14 +4428,11 @@ bool GrGLGpu::isTestingOnlyBackendTexture(const GrBackendTexture& tex) const { return (GR_GL_TRUE == result); } -void GrGLGpu::deleteTestingOnlyBackendTexture(GrBackendTexture* tex, bool abandonTexture) { +void GrGLGpu::deleteTestingOnlyBackendTexture(GrBackendTexture* tex) { SkASSERT(kOpenGL_GrBackend == tex->backend()); - const GrGLTextureInfo* info = tex->getGLTextureInfo(); - if (info && !abandonTexture) { - GrGLuint texID = info->fID; - - GL_CALL(DeleteTextures(1, &texID)); + if (const auto* info = tex->getGLTextureInfo()) { + GL_CALL(DeleteTextures(1, &info->fID)); } } |