[Bf-blender-cvs] [49deda4ca22] master: GPUBatch: Correctly Free Panel Widget Batch
Jeroen Bakker
noreply at git.blender.org
Tue Apr 7 10:47:49 CEST 2020
Commit: 49deda4ca223fbfb33912ea7d14f9c2b77155f68
Author: Jeroen Bakker
Date: Tue Apr 7 10:46:44 2020 +0200
Branches: master
https://developer.blender.org/rB49deda4ca223fbfb33912ea7d14f9c2b77155f68
GPUBatch: Correctly Free Panel Widget Batch
The GPU Batch for the panel drag widget wasn't freed anywhere. This
patch will free the GPUBatch.
===================================================================
M source/blender/gpu/intern/gpu_batch_presets.c
===================================================================
diff --git a/source/blender/gpu/intern/gpu_batch_presets.c b/source/blender/gpu/intern/gpu_batch_presets.c
index e488880bf0a..34bd921992c 100644
--- a/source/blender/gpu/intern/gpu_batch_presets.c
+++ b/source/blender/gpu/intern/gpu_batch_presets.c
@@ -310,6 +310,7 @@ GPUBatch *GPU_batch_preset_panel_drag_widget(const float pixelsize,
if (g_presets_2d.batch.panel_drag_widget && parameters_changed) {
gpu_batch_presets_unregister(g_presets_2d.batch.panel_drag_widget);
+ GPU_batch_discard(g_presets_2d.batch.panel_drag_widget);
g_presets_2d.batch.panel_drag_widget = NULL;
}
More information about the Bf-blender-cvs
mailing list