diff options
author | Hans Goudey <h.goudey@me.com> | 2020-08-20 20:32:51 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-08-20 20:33:17 +0300 |
commit | 2e6d5e6c6bd43e8cb806919c7bdc62637d031ff1 (patch) | |
tree | c020efd9fe7b6cc5c966b75f7e124a32a8bc93d9 /source/blender/gpu/intern/gpu_shader.cc | |
parent | e5fd2a388856bab67047a08df6e6b0dd01a58245 (diff) |
Cleanup: Clang Tidy: Resolve readability-delete-null-pointer error
Diffstat (limited to 'source/blender/gpu/intern/gpu_shader.cc')
-rw-r--r-- | source/blender/gpu/intern/gpu_shader.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/gpu/intern/gpu_shader.cc b/source/blender/gpu/intern/gpu_shader.cc index 9b4fe1d06ca..21678548b13 100644 --- a/source/blender/gpu/intern/gpu_shader.cc +++ b/source/blender/gpu/intern/gpu_shader.cc @@ -196,9 +196,7 @@ Shader::Shader(const char *sh_name) Shader::~Shader() { - if (interface) { - delete interface; - } + delete interface; } static void standard_defines(Vector<const char *> &sources) |