Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-21 18:45:43 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-21 23:30:08 +0300
commitc5862e0a06b75767fd863673c54aab54f27d1872 (patch)
tree859b364533455278eb73fb39e3ebf33996d250cc /source/blender/gpu/intern/gpu_texture.c
parent024d40b504e4dc2a23824021bdcfe772a1f5f670 (diff)
Cleanup: comments (long lines) in gpu
Diffstat (limited to 'source/blender/gpu/intern/gpu_texture.c')
-rw-r--r--source/blender/gpu/intern/gpu_texture.c7
1 files changed, 4 insertions, 3 deletions
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) {