diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-18 13:19:06 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-18 13:19:06 +0300 |
commit | 5869bf5002f6bb370ef62da62d8cf7d56178b663 (patch) | |
tree | dbe3de77a0e3ab1fa8ddbc89ea7467aec8481cc4 /source/blender/gpu/intern | |
parent | b3814d8645a1f232478210d8a5ae00c101d8b045 (diff) |
Cleanup: fix compiler warnings.
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r-- | source/blender/gpu/intern/gpu_draw.c | 2 |
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); |