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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-18 13:19:06 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-18 13:19:06 +0300
commit5869bf5002f6bb370ef62da62d8cf7d56178b663 (patch)
treedbe3de77a0e3ab1fa8ddbc89ea7467aec8481cc4 /source/blender/gpu/intern/gpu_draw.c
parentb3814d8645a1f232478210d8a5ae00c101d8b045 (diff)
Cleanup: fix compiler warnings.
Diffstat (limited to 'source/blender/gpu/intern/gpu_draw.c')
-rw-r--r--source/blender/gpu/intern/gpu_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c
index 685b929ac93..41780033011 100644
--- a/source/blender/gpu/intern/gpu_draw.c
+++ b/source/blender/gpu/intern/gpu_draw.c
@@ -1028,7 +1028,7 @@ static GPUTexture *create_density_texture(SmokeDomainSettings *sds, int highres)
GPUTexture *tex = GPU_texture_create_nD(
dim[0], dim[1], dim[2], 3,
- (data) ? data : source,
+ (has_color) ? data : source,
format, GPU_DATA_FLOAT, 0, true, NULL);
if (data) {
MEM_freeN(data);