From 20a6255d49aaa1ca0ad72e75be064b2c1a56353f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 17 Feb 2021 15:04:29 +1100 Subject: Cleanup: spelling --- source/blender/gpu/intern/gpu_matrix.cc | 2 +- source/blender/gpu/intern/gpu_shader_interface.hh | 2 +- source/blender/gpu/opengl/gl_texture.cc | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'source/blender/gpu') diff --git a/source/blender/gpu/intern/gpu_matrix.cc b/source/blender/gpu/intern/gpu_matrix.cc index 4ccb28fedbd..24cdea74347 100644 --- a/source/blender/gpu/intern/gpu_matrix.cc +++ b/source/blender/gpu/intern/gpu_matrix.cc @@ -732,7 +732,7 @@ float GPU_polygon_offset_calc(const float (*winmat)[4], float viewdist, float di #else static float depth_fac = 0.0f; if (depth_fac == 0.0f) { - /* Hardcode for 24 bit precision. */ + /* Hard-code for 24 bit precision. */ int depthbits = 24; depth_fac = 1.0f / (float)((1 << depthbits) - 1); } diff --git a/source/blender/gpu/intern/gpu_shader_interface.hh b/source/blender/gpu/intern/gpu_shader_interface.hh index 942be84caae..aec58544111 100644 --- a/source/blender/gpu/intern/gpu_shader_interface.hh +++ b/source/blender/gpu/intern/gpu_shader_interface.hh @@ -60,7 +60,7 @@ class ShaderInterface { uint attr_len_ = 0; uint ubo_len_ = 0; uint uniform_len_ = 0; - /** Enabled bindpoints that needs to be fed with data. */ + /** Enabled bind-points that needs to be fed with data. */ uint16_t enabled_attr_mask_ = 0; uint16_t enabled_ubo_mask_ = 0; uint8_t enabled_ima_mask_ = 0; diff --git a/source/blender/gpu/opengl/gl_texture.cc b/source/blender/gpu/opengl/gl_texture.cc index ef38e964c7b..51cfcd20a6c 100644 --- a/source/blender/gpu/opengl/gl_texture.cc +++ b/source/blender/gpu/opengl/gl_texture.cc @@ -297,15 +297,15 @@ void GLTexture::update_sub( void GLTexture::generate_mipmap() { this->ensure_mipmaps(9999); - /* Some drivers have bugs when using glGenerateMipmap with depth textures (see T56789). + /* Some drivers have bugs when using #glGenerateMipmap with depth textures (see T56789). * In this case we just create a complete texture with mipmaps manually without * down-sampling. You must initialize the texture levels using other methods like - * GPU_framebuffer_recursive_downsample(). */ + * #GPU_framebuffer_recursive_downsample(). */ if (format_flag_ & GPU_FORMAT_DEPTH) { return; } - /* Downsample from mip 0 using implementation. */ + /* Down-sample from mip 0 using implementation. */ if (GLContext::direct_state_access_support) { glGenerateTextureMipmap(tex_id_); } -- cgit v1.2.3