aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLGpu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/gl/GrGLGpu.cpp')
-rw-r--r--src/gpu/gl/GrGLGpu.cpp9
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));
}
}