From c5862e0a06b75767fd863673c54aab54f27d1872 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 22 Apr 2019 01:45:43 +1000 Subject: Cleanup: comments (long lines) in gpu --- source/blender/gpu/intern/gpu_texture.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source/blender/gpu/intern/gpu_texture.c') diff --git a/source/blender/gpu/intern/gpu_texture.c b/source/blender/gpu/intern/gpu_texture.c index afe5e381334..e1a4357467c 100644 --- a/source/blender/gpu/intern/gpu_texture.c +++ b/source/blender/gpu/intern/gpu_texture.c @@ -43,8 +43,8 @@ #include "gpu_context_private.h" static struct GPUTextureGlobal { - GPUTexture * - invalid_tex_1D; /* texture used in place of invalid textures (not loaded correctly, missing) */ + /** Texture used in place of invalid textures (not loaded correctly, missing). */ + GPUTexture *invalid_tex_1D; GPUTexture *invalid_tex_2D; GPUTexture *invalid_tex_3D; } GG = {NULL, NULL, NULL}; @@ -1598,7 +1598,8 @@ void GPU_texture_generate_mipmap(GPUTexture *tex) if (GPU_texture_depth(tex)) { /* 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 downsampling. - * You must initialize the texture levels using other methods like GPU_framebuffer_recursive_downsample(). */ + * You must initialize the texture levels using other methods like + * GPU_framebuffer_recursive_downsample(). */ int levels = 1 + floor(log2(max_ii(tex->w, tex->h))); eGPUDataFormat data_format = gpu_get_data_format_from_tex_format(tex->format); for (int i = 1; i < levels; ++i) { -- cgit v1.2.3