From e1a1dc868b30be80e59b747557830d507600bd1d Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 11 Mar 2022 14:23:11 +0100 Subject: Cleanup: fix source comment typos Contributed by luzpaz. Differential Revision: https://developer.blender.org/D14307 --- source/blender/draw/engines/eevee/shaders/effect_dof_gather_frag.glsl | 2 +- source/blender/draw/engines/eevee/shaders/effect_minmaxz_frag.glsl | 2 +- source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl | 2 +- source/blender/draw/intern/shaders/common_math_lib.glsl | 2 +- source/blender/gpu/intern/gpu_shader_create_info.hh | 2 +- source/blender/gpu/opengl/gl_shader.cc | 2 +- source/blender/windowmanager/intern/wm_operators.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'source/blender') diff --git a/source/blender/draw/engines/eevee/shaders/effect_dof_gather_frag.glsl b/source/blender/draw/engines/eevee/shaders/effect_dof_gather_frag.glsl index f5c45d147e6..fe1ab395a54 100644 --- a/source/blender/draw/engines/eevee/shaders/effect_dof_gather_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/effect_dof_gather_frag.glsl @@ -12,7 +12,7 @@ #pragma BLENDER_REQUIRE(common_utiltex_lib.glsl) #pragma BLENDER_REQUIRE(effect_dof_lib.glsl) -/* Mipmapped input buffers, halfres but with padding to ensure mipmap alignement. */ +/* Mipmapped input buffers, halfres but with padding to ensure mipmap alignment. */ uniform sampler2D colorBuffer; uniform sampler2D cocBuffer; diff --git a/source/blender/draw/engines/eevee/shaders/effect_minmaxz_frag.glsl b/source/blender/draw/engines/eevee/shaders/effect_minmaxz_frag.glsl index 8ef39a55921..ce455123987 100644 --- a/source/blender/draw/engines/eevee/shaders/effect_minmaxz_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/effect_minmaxz_frag.glsl @@ -4,7 +4,7 @@ * Adapted from http://rastergrid.com/blog/2010/10/hierarchical-z-map-based-occlusion-culling/ * * Major simplification has been made since we pad the buffer to always be bigger than input to - * avoid mipmapping misalignement. + * avoid mipmapping misalignment. */ #ifdef LAYERED diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl b/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl index 36a52e05a4a..b4a26ec8103 100644 --- a/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl +++ b/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl @@ -442,7 +442,7 @@ void stroke_vertex() if (is_dot) { # ifdef GP_MATERIAL_BUFFER_LEN int alignement = GP_FLAG(m) & GP_STROKE_ALIGNMENT; - /* For one point strokes use object aligment. */ + /* For one point strokes use object alignment. */ if (ma.x == -1 && ma2.x == -1 && alignement == GP_STROKE_ALIGNMENT_STROKE) { alignement = GP_STROKE_ALIGNMENT_OBJECT; } diff --git a/source/blender/draw/intern/shaders/common_math_lib.glsl b/source/blender/draw/intern/shaders/common_math_lib.glsl index 479f9cd1827..eb7a98788c3 100644 --- a/source/blender/draw/intern/shaders/common_math_lib.glsl +++ b/source/blender/draw/intern/shaders/common_math_lib.glsl @@ -93,7 +93,7 @@ vec2 sqr(vec2 a) { return a * a; } vec3 sqr(vec3 a) { return a * a; } vec4 sqr(vec4 a) { return a * a; } -/* Use manual powers for fixed powers. pow() can have unpredicatble results on some implementations. +/* Use manual powers for fixed powers. pow() can have unpredictable results on some implementations. * (see T87369, T87541) */ float pow6(float x) { return sqr(sqr(x) * x); } float pow8(float x) { return sqr(sqr(sqr(x))); } diff --git a/source/blender/gpu/intern/gpu_shader_create_info.hh b/source/blender/gpu/intern/gpu_shader_create_info.hh index bf74d44d9a7..da63d372669 100644 --- a/source/blender/gpu/intern/gpu_shader_create_info.hh +++ b/source/blender/gpu/intern/gpu_shader_create_info.hh @@ -22,7 +22,7 @@ namespace blender::gpu::shader { #ifndef GPU_SHADER_CREATE_INFO -/* Helps intelisense / auto-completion. */ +/* Helps intellisense / auto-completion. */ # define GPU_SHADER_INTERFACE_INFO(_interface, _inst_name) \ StageInterfaceInfo _interface(#_interface, _inst_name); \ _interface diff --git a/source/blender/gpu/opengl/gl_shader.cc b/source/blender/gpu/opengl/gl_shader.cc index 31f657a63b2..256702b60c5 100644 --- a/source/blender/gpu/opengl/gl_shader.cc +++ b/source/blender/gpu/opengl/gl_shader.cc @@ -175,7 +175,7 @@ static const char *to_string(const eGPUTextureFormat &type) case GPU_R16: return "r16"; default: - return "unkown"; + return "unknown"; } } diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 84cd8dce6cf..7b18d7659e2 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -383,7 +383,7 @@ static const char *wm_context_member_from_ptr(bContext *C, const PointerRNA *ptr * since there is no convenient way to calculate partial RNA paths. * * \note While the path to the ID is typically sufficient to calculate the remainder of the path, - * in practice this would cause #WM_context_path_resolve_property_full to crate a path such as: + * in practice this would cause #WM_context_path_resolve_property_full to create a path such as: * `object.data.bones["Bones"].use_deform` such paths are not useful for key-shortcuts, * so this function supports returning data-paths directly to context members that aren't ID types. */ -- cgit v1.2.3