diff options
author | Hans Goudey <h.goudey@me.com> | 2022-03-22 01:12:14 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-03-22 01:12:22 +0300 |
commit | 976c91cd770f4323d4a5007e5bf444b8c701278b (patch) | |
tree | 0c8d1326f926d1e6c550ab41109e6fb596dfc1bf /source/blender/gpu/intern/gpu_texture.cc | |
parent | def1c0c5385b7845c1a1bbbb55cd5275587a6338 (diff) |
Cleanup: Clang tidy
Diffstat (limited to 'source/blender/gpu/intern/gpu_texture.cc')
-rw-r--r-- | source/blender/gpu/intern/gpu_texture.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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 */ |