From 976c91cd770f4323d4a5007e5bf444b8c701278b Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Mon, 21 Mar 2022 17:12:14 -0500 Subject: Cleanup: Clang tidy --- source/blender/gpu/intern/gpu_texture.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/gpu/intern/gpu_texture.cc') diff --git a/source/blender/gpu/intern/gpu_texture.cc b/source/blender/gpu/intern/gpu_texture.cc index b41193f12fa..d78dc845074 100644 --- a/source/blender/gpu/intern/gpu_texture.cc +++ b/source/blender/gpu/intern/gpu_texture.cc @@ -587,13 +587,13 @@ int GPU_texture_dimensions(const GPUTexture *tex_) if (type & GPU_TEXTURE_1D) { return 1; } - else if (type & GPU_TEXTURE_2D) { + if (type & GPU_TEXTURE_2D) { return 2; } - else if (type & GPU_TEXTURE_3D) { + if (type & GPU_TEXTURE_3D) { return 3; } - else if (type & GPU_TEXTURE_CUBE) { + if (type & GPU_TEXTURE_CUBE) { return 2; } /* GPU_TEXTURE_BUFFER */ -- cgit v1.2.3