From a4a9d14ba71100259f19bd62e8c2f27cd8b7862f Mon Sep 17 00:00:00 2001 From: luzpaz Date: Fri, 5 Feb 2021 19:07:03 -0800 Subject: UI: Fix Typos in Comments and Docs Approximately 91 spelling corrections, almost all in comments. Differential Revision: https://developer.blender.org/D10288 Reviewed by Harley Acheson --- source/blender/gpu/GPU_batch.h | 2 +- source/blender/gpu/opengl/gl_backend.cc | 2 +- source/blender/gpu/opengl/gl_context.hh | 4 ++-- source/blender/gpu/shaders/gpu_shader_2D_widget_base_vert.glsl | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'source/blender/gpu') diff --git a/source/blender/gpu/GPU_batch.h b/source/blender/gpu/GPU_batch.h index be418c15060..018e192bf37 100644 --- a/source/blender/gpu/GPU_batch.h +++ b/source/blender/gpu/GPU_batch.h @@ -128,7 +128,7 @@ void GPU_batch_program_set_builtin_with_config(GPUBatch *batch, eGPUShaderConfig sh_cfg); /* Will only work after setting the batch program. */ -/* TODO(fclem): Theses needs to be replaced by GPU_shader_uniform_* with explicit shader. */ +/* TODO(fclem): These need to be replaced by GPU_shader_uniform_* with explicit shader. */ #define GPU_batch_uniform_1i(batch, name, x) GPU_shader_uniform_1i((batch)->shader, name, x); #define GPU_batch_uniform_1b(batch, name, x) GPU_shader_uniform_1b((batch)->shader, name, x); #define GPU_batch_uniform_1f(batch, name, x) GPU_shader_uniform_1f((batch)->shader, name, x); diff --git a/source/blender/gpu/opengl/gl_backend.cc b/source/blender/gpu/opengl/gl_backend.cc index a1b7aba1140..ef7788194a1 100644 --- a/source/blender/gpu/opengl/gl_backend.cc +++ b/source/blender/gpu/opengl/gl_backend.cc @@ -308,7 +308,7 @@ static void detect_workarounds() if (GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_WIN, GPU_DRIVER_OFFICIAL) && !GLEW_VERSION_4_5) { GLContext::copy_image_support = false; } - /* Special fix for theses specific GPUs. + /* Special fix for these specific GPUs. * Without this workaround, blender crashes on startup. (see T72098) */ if (GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_WIN, GPU_DRIVER_OFFICIAL) && (strstr(renderer, "HD Graphics 620") || strstr(renderer, "HD Graphics 630"))) { diff --git a/source/blender/gpu/opengl/gl_context.hh b/source/blender/gpu/opengl/gl_context.hh index b8d979e8f0e..0222adaba25 100644 --- a/source/blender/gpu/opengl/gl_context.hh +++ b/source/blender/gpu/opengl/gl_context.hh @@ -43,7 +43,7 @@ class GLVaoCache; class GLSharedOrphanLists { public: - /** Mutex for the bellow structures. */ + /** Mutex for the below structures. */ std::mutex lists_mutex; /** Buffers and textures are shared across context. Any context can free them. */ Vector textures; @@ -92,7 +92,7 @@ class GLContext : public Context { */ Set vao_caches_; Set framebuffers_; - /** Mutex for the bellow structures. */ + /** Mutex for the below structures. */ std::mutex lists_mutex_; /** VertexArrays and framebuffers are not shared across context. */ Vector orphaned_vertarrays_; diff --git a/source/blender/gpu/shaders/gpu_shader_2D_widget_base_vert.glsl b/source/blender/gpu/shaders/gpu_shader_2D_widget_base_vert.glsl index fb512a1f00e..81e0965fad3 100644 --- a/source/blender/gpu/shaders/gpu_shader_2D_widget_base_vert.glsl +++ b/source/blender/gpu/shaders/gpu_shader_2D_widget_base_vert.glsl @@ -57,7 +57,7 @@ in float dummy; vec2 do_widget(void) { - /* Offset to avoid loosing pixels (mimics conservative rasterization). */ + /* Offset to avoid losing pixels (mimics conservative rasterization). */ const vec2 ofs = vec2(0.5, -0.5); lineWidth = abs(rect.x - recti.x); vec2 emboss_ofs = vec2(0.0, -lineWidth); -- cgit v1.2.3