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-06-22 16:06:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-06-22 16:07:01 +0300
commit8b633745ffd0403fd961bef35184f2c47cc923ca (patch)
tree2c1da4e38a64fbba14db9ec44da7767bbeea0d00 /source/blender/gpu/intern/gpu_draw.c
parentdc6a6f1828f015e06e7aef3e094bce9cff07644c (diff)
Cleanup: add braces
Diffstat (limited to 'source/blender/gpu/intern/gpu_draw.c')
-rw-r--r--source/blender/gpu/intern/gpu_draw.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c
index f5d599eb647..9a341631833 100644
--- a/source/blender/gpu/intern/gpu_draw.c
+++ b/source/blender/gpu/intern/gpu_draw.c
@@ -313,10 +313,12 @@ static GPUTexture **gpu_get_movieclip_gputexture(MovieClip *clip,
BLI_addtail(&clip->runtime.gputextures, tex);
}
- if (textarget == GL_TEXTURE_2D)
+ if (textarget == GL_TEXTURE_2D) {
return &tex->gputexture[TEXTARGET_TEXTURE_2D];
- else if (textarget == GL_TEXTURE_CUBE_MAP)
+ }
+ else if (textarget == GL_TEXTURE_CUBE_MAP) {
return &tex->gputexture[TEXTARGET_TEXTURE_CUBE_MAP];
+ }
return NULL;
}