From b0485d47ef68cf07b8c9be3dc15997669c3aa055 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 11 Aug 2020 14:58:01 -0400 Subject: Cleanup: Resolve clang tidy warning / error --- source/blender/gpu/intern/gpu_context.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'source/blender/gpu') 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) -- cgit v1.2.3