diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-07 14:59:22 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-07 15:03:03 +0300 |
commit | 6b91c641e81ec2256b63e3dc8c0fe9d4e5dcf411 (patch) | |
tree | 02423eebd06fe2c1467dd461f2967e7b8fc64504 /source/blender/gpu/intern | |
parent | aa32e7a2f31486503edb430b15ce31a819e02702 (diff) |
GPU: Fix clang tidy warnings
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r-- | source/blender/gpu/intern/gpu_texture.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/gpu/intern/gpu_texture.cc b/source/blender/gpu/intern/gpu_texture.cc index a4d0d039c8f..ad9b690683c 100644 --- a/source/blender/gpu/intern/gpu_texture.cc +++ b/source/blender/gpu/intern/gpu_texture.cc @@ -331,17 +331,17 @@ GPUTexture *GPU_texture_create_error(int dimension, bool is_array) void GPU_texture_update_mipmap(GPUTexture *tex_, int miplvl, - eGPUDataFormat gpu_data_format, + eGPUDataFormat data_format, const void *pixels) { Texture *tex = reinterpret_cast<Texture *>(tex_); int extent[3] = {1, 1, 1}, offset[3] = {0, 0, 0}; tex->mip_size_get(miplvl, extent); - reinterpret_cast<Texture *>(tex)->update_sub(miplvl, offset, extent, gpu_data_format, pixels); + reinterpret_cast<Texture *>(tex)->update_sub(miplvl, offset, extent, data_format, pixels); } void GPU_texture_update_sub(GPUTexture *tex, - eGPUDataFormat gpu_data_format, + eGPUDataFormat data_format, const void *pixels, int offset_x, int offset_y, @@ -352,7 +352,7 @@ void GPU_texture_update_sub(GPUTexture *tex, { int offset[3] = {offset_x, offset_y, offset_z}; int extent[3] = {width, height, depth}; - reinterpret_cast<Texture *>(tex)->update_sub(0, offset, extent, gpu_data_format, pixels); + reinterpret_cast<Texture *>(tex)->update_sub(0, offset, extent, data_format, pixels); } void *GPU_texture_read(GPUTexture *tex_, eGPUDataFormat data_format, int miplvl) |