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:
authorJacques Lucke <jacques@blender.org>2020-09-22 11:42:52 +0300
committerJacques Lucke <jacques@blender.org>2020-09-22 11:43:11 +0300
commit222ed9f78170116e1739a5cef65d31322d72f507 (patch)
treeffb9253cf3e307efd8e9859f4a6f42d1937d97e4 /source/blender/draw/intern/draw_fluid.c
parentee89106ac12eb77e1d4722b4923247086a3b6c69 (diff)
Fix T80943: return early when field to visualize is NULL
Diffstat (limited to 'source/blender/draw/intern/draw_fluid.c')
-rw-r--r--source/blender/draw/intern/draw_fluid.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_fluid.c b/source/blender/draw/intern/draw_fluid.c
index d9bd94b480e..a21402e6392 100644
--- a/source/blender/draw/intern/draw_fluid.c
+++ b/source/blender/draw/intern/draw_fluid.c
@@ -316,6 +316,10 @@ static GPUTexture *create_field_texture(FluidDomainSettings *fds, bool single_pr
return NULL;
}
+ if (field == NULL) {
+ return NULL;
+ }
+
GPUTexture *tex = create_volume_texture(fds->res, texture_format, data_format, field);
swizzle_texture_channel_single(tex);
return tex;