diff options
author | Campbell Barton <campbell@blender.org> | 2022-02-23 10:24:08 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-02-23 10:24:37 +0300 |
commit | 7393cc1db7abc8fd2c1c37dc13dfc1c85ccffbf6 (patch) | |
tree | 1af0fbf19384c1d987535c1e445ffebae5665093 /source/blender/gpu | |
parent | 165b030b19718694eaf33d6602034ed88fdd31a1 (diff) |
Cleanup: Remove repeated word in comments
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/intern/gpu_shader_create_info.hh | 6 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_shader_dependency_private.h | 2 | ||||
-rw-r--r-- | source/blender/gpu/opengl/gl_immediate.cc | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/gpu/intern/gpu_shader_create_info.hh b/source/blender/gpu/intern/gpu_shader_create_info.hh index bd0187e2dc5..e05dce57674 100644 --- a/source/blender/gpu/intern/gpu_shader_create_info.hh +++ b/source/blender/gpu/intern/gpu_shader_create_info.hh @@ -497,9 +497,9 @@ struct ShaderCreateInfo { /** * IMPORTANT: invocations count is only used if GL_ARB_gpu_shader5 is supported. On - * implementations that do not supports it, the max_vertices will be be multiplied by - * invocations. Your shader needs to account for this fact. Use `#ifdef GPU_ARB_gpu_shader5` - * and make a code path that does not rely on gl_InvocationID. + * implementations that do not supports it, the max_vertices will be multiplied by invocations. + * Your shader needs to account for this fact. Use `#ifdef GPU_ARB_gpu_shader5` and make a code + * path that does not rely on #gl_InvocationID. */ Self &geometry_layout(PrimitiveIn prim_in, PrimitiveOut prim_out, diff --git a/source/blender/gpu/intern/gpu_shader_dependency_private.h b/source/blender/gpu/intern/gpu_shader_dependency_private.h index 29ee70962d1..7b9ecef5835 100644 --- a/source/blender/gpu/intern/gpu_shader_dependency_private.h +++ b/source/blender/gpu/intern/gpu_shader_dependency_private.h @@ -38,7 +38,7 @@ StringRefNull gpu_shader_dependency_get_source(const StringRefNull source_name); /** * \brief Find the name of the file from which the given string was generated. - * \return Return filename or empty string. + * \return filename or empty string. * \note source_string needs to be identical to the one given by gpu_shader_dependency_get_source() */ StringRefNull gpu_shader_dependency_get_filename_from_source_string( diff --git a/source/blender/gpu/opengl/gl_immediate.cc b/source/blender/gpu/opengl/gl_immediate.cc index cfedfe348f1..c32a6afd8cf 100644 --- a/source/blender/gpu/opengl/gl_immediate.cc +++ b/source/blender/gpu/opengl/gl_immediate.cc @@ -139,7 +139,7 @@ void GLImmediate::end() GLContext::get()->state_manager->apply_state(); /* We convert the offset in vertex offset from the buffer's start. - * This works because we added some padding to align the first vertex vertex. */ + * This works because we added some padding to align the first vertex. */ uint v_first = buffer_offset() / vertex_format.stride; GLVertArray::update_bindings( vao_id_, v_first, &vertex_format, reinterpret_cast<Shader *>(shader)->interface); |