diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-07-26 21:20:03 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-07-26 22:07:25 +0300 |
commit | 54237994d8b4fd199dc8a616685638b39e7e278d (patch) | |
tree | 0fce384c32a42a489afdcdae803fee086fb60c10 /source/blender/gpu/intern/gpu_texture.c | |
parent | 487eaeed7e3da6bbadc7899062574ef9b62ab7e4 (diff) |
Cleanup: Image: Rename redundant enum for clarity
Diffstat (limited to 'source/blender/gpu/intern/gpu_texture.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_texture.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/gpu/intern/gpu_texture.c b/source/blender/gpu/intern/gpu_texture.c index 2eac3c6f64d..e3d0dcdf65b 100644 --- a/source/blender/gpu/intern/gpu_texture.c +++ b/source/blender/gpu/intern/gpu_texture.c @@ -1189,10 +1189,10 @@ GPUTexture *GPU_texture_create_buffer(eGPUTextureFormat tex_format, const GLuint static GLenum convert_target_to_gl(int target) { static const GLenum table[] = { - [TEXTARGET_TEXTURE_2D] = GL_TEXTURE_2D, - [TEXTARGET_TEXTURE_CUBE_MAP] = GL_TEXTURE_CUBE_MAP, - [TEXTARGET_TEXTURE_2D_ARRAY] = GL_TEXTURE_2D_ARRAY, - [TEXTARGET_TEXTURE_TILE_MAPPING] = GL_TEXTURE_1D_ARRAY, + [TEXTARGET_2D] = GL_TEXTURE_2D, + [TEXTARGET_CUBE_MAP] = GL_TEXTURE_CUBE_MAP, + [TEXTARGET_2D_ARRAY] = GL_TEXTURE_2D_ARRAY, + [TEXTARGET_TILE_MAPPING] = GL_TEXTURE_1D_ARRAY, }; return table[target]; } |