Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-08-11 21:58:01 +0300
committerHans Goudey <h.goudey@me.com>2020-08-11 21:58:01 +0300
commitb0485d47ef68cf07b8c9be3dc15997669c3aa055 (patch)
treefbff53d6acd27955cdb8500b7525f92581abb717
parent2b6d4325ace76ccca296e3684954e5aebca51209 (diff)
Cleanup: Resolve clang tidy warning / error
-rw-r--r--source/blender/gpu/intern/gpu_context.cc8
1 files changed, 3 insertions, 5 deletions
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)