[Bf-blender-cvs] [b0485d47ef6] master: Cleanup: Resolve clang tidy warning / error

Hans Goudey noreply at git.blender.org
Tue Aug 11 20:58:17 CEST 2020


Commit: b0485d47ef68cf07b8c9be3dc15997669c3aa055
Author: Hans Goudey
Date:   Tue Aug 11 14:58:01 2020 -0400
Branches: master
https://developer.blender.org/rBb0485d47ef68cf07b8c9be3dc15997669c3aa055

Cleanup: Resolve clang tidy warning / error

===================================================================

M	source/blender/gpu/intern/gpu_context.cc

===================================================================

diff --git a/source/blender/gpu/intern/gpu_context.cc b/source/blender/gpu/intern/gpu_context.cc
index 85a4d643a0c..283784aec20 100644
--- a/source/blender/gpu/intern/gpu_context.cc
+++ b/source/blender/gpu/intern/gpu_context.cc
@@ -280,11 +280,9 @@ void GPU_backend_init(eGPUBackendType backend_type)
 
 void GPU_backend_exit(void)
 {
-  if (g_backend) {
-    /* TODO assert no resource left. Currently UI textures are still not freed in their context
-     * correctly. */
-    delete g_backend;
-  }
+  /* TODO assert no resource left. Currently UI textures are still not freed in their context
+   * correctly. */
+  delete g_backend;
 }
 
 GPUBackend *gpu_backend_get(void)



More information about the Bf-blender-cvs mailing list