diff options
author | Sergey Sharybin <sergey@blender.org> | 2020-11-06 15:18:48 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2020-11-06 15:40:46 +0300 |
commit | a331d5c99299c4514ca33c843b1c79b872f2728d (patch) | |
tree | b866b7f4b272365bf32f2cb248917932672b82d5 /source/blender/gpu/opengl/gl_backend.cc | |
parent | 41db8f2fce1763c312a7fa47ed3aa338e6d77124 (diff) |
Cleanup: Clang-Tidy, modernize-redundant-void-arg
Diffstat (limited to 'source/blender/gpu/opengl/gl_backend.cc')
-rw-r--r-- | source/blender/gpu/opengl/gl_backend.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/gpu/opengl/gl_backend.cc b/source/blender/gpu/opengl/gl_backend.cc index 46e048d7f7c..b444bd1859d 100644 --- a/source/blender/gpu/opengl/gl_backend.cc +++ b/source/blender/gpu/opengl/gl_backend.cc @@ -38,7 +38,7 @@ namespace blender::gpu { /** \name Platform * \{ */ -void GLBackend::platform_init(void) +void GLBackend::platform_init() { BLI_assert(!GPG.initialized); GPG.initialized = true; @@ -135,7 +135,7 @@ void GLBackend::platform_init(void) GPG.create_gpu_name(vendor, renderer, version); } -void GLBackend::platform_exit(void) +void GLBackend::platform_exit() { BLI_assert(GPG.initialized); GPG.clear(); @@ -147,7 +147,7 @@ void GLBackend::platform_exit(void) /** \name Capabilities * \{ */ -static bool detect_mip_render_workaround(void) +static bool detect_mip_render_workaround() { int cube_size = 2; float clear_color[4] = {1.0f, 0.5f, 0.0f, 0.0f}; @@ -192,7 +192,7 @@ static bool detect_mip_render_workaround(void) return enable_workaround; } -static void detect_workarounds(void) +static void detect_workarounds() { const char *vendor = (const char *)glGetString(GL_VENDOR); const char *renderer = (const char *)glGetString(GL_RENDERER); @@ -376,7 +376,7 @@ bool GLContext::debug_layer_workaround = false; bool GLContext::unused_fb_slot_workaround = false; float GLContext::derivative_signs[2] = {1.0f, 1.0f}; -void GLBackend::capabilities_init(void) +void GLBackend::capabilities_init() { BLI_assert(GLEW_VERSION_3_3); /* Common Capabilities. */ |