Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Carlisle <carlisle.b3d@gmail.com>2021-12-30 02:51:10 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2021-12-30 02:51:10 +0300
commit9d3264b4fd04ee4a6b52e0f97de3fcd3a81c1a86 (patch)
tree2166b322b4ecb8a49ce18e595024554465a79615 /source/blender/gpu
parentd3a31311b9ba2108e292d05a91893396456b387c (diff)
Cleanup: clang-tidy modernize-redundant-void-arg
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_shader.cc2
-rw-r--r--source/blender/gpu/intern/gpu_texture.cc8
2 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/gpu/intern/gpu_shader.cc b/source/blender/gpu/intern/gpu_shader.cc
index 1b6cb196534..3f5a639d2a0 100644
--- a/source/blender/gpu/intern/gpu_shader.cc
+++ b/source/blender/gpu/intern/gpu_shader.cc
@@ -339,7 +339,7 @@ void GPU_shader_bind(GPUShader *gpu_shader)
}
}
-void GPU_shader_unbind(void)
+void GPU_shader_unbind()
{
#ifndef NDEBUG
Context *ctx = Context::get();
diff --git a/source/blender/gpu/intern/gpu_texture.cc b/source/blender/gpu/intern/gpu_texture.cc
index c7e2043b790..1b8b28bf04c 100644
--- a/source/blender/gpu/intern/gpu_texture.cc
+++ b/source/blender/gpu/intern/gpu_texture.cc
@@ -190,7 +190,7 @@ using namespace blender::gpu;
/* ------ Memory Management ------ */
-uint GPU_texture_memory_usage_get(void)
+uint GPU_texture_memory_usage_get()
{
/* TODO(fclem): Do that inside the new Texture class. */
return 0;
@@ -424,7 +424,7 @@ void GPU_texture_unbind(GPUTexture *tex_)
Context::get()->state_manager->texture_unbind(tex);
}
-void GPU_texture_unbind_all(void)
+void GPU_texture_unbind_all()
{
Context::get()->state_manager->texture_unbind_all();
}
@@ -439,7 +439,7 @@ void GPU_texture_image_unbind(GPUTexture *tex)
Context::get()->state_manager->image_unbind(unwrap(tex));
}
-void GPU_texture_image_unbind_all(void)
+void GPU_texture_image_unbind_all()
{
Context::get()->state_manager->image_unbind_all();
}
@@ -613,7 +613,7 @@ void GPU_texture_get_mipmap_size(GPUTexture *tex, int lvl, int *r_size)
* Override texture sampler state for one sampler unit only.
* \{ */
-void GPU_samplers_update(void)
+void GPU_samplers_update()
{
GPUBackend::get()->samplers_update();
}