diff options
Diffstat (limited to 'source/blender/draw/intern/draw_fluid.c')
-rw-r--r-- | source/blender/draw/intern/draw_fluid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_fluid.c b/source/blender/draw/intern/draw_fluid.c index 9cfdbf7c688..616307ca86b 100644 --- a/source/blender/draw/intern/draw_fluid.c +++ b/source/blender/draw/intern/draw_fluid.c @@ -589,9 +589,10 @@ void DRW_fluid_ensure_range_field(FluidModifierData *fmd) #endif /* WITH_FLUID */ } -/* TODO: Unify with the other #GPU_free_smoke. */ void DRW_smoke_free_velocity(FluidModifierData *fmd) { + /* TODO: Unify with the other #GPU_free_smoke. */ + if (fmd->type & MOD_FLUID_TYPE_DOMAIN && fmd->domain) { if (fmd->domain->tex_velocity_x) { GPU_texture_free(fmd->domain->tex_velocity_x); |