Commit 3eb9445c authored by Benedikt Zoennchen's avatar Benedikt Zoennchen

OpenCL Bug-fix

parent f3a5d5b7
......@@ -171,6 +171,7 @@ public abstract class SimulationRenderer extends DefaultRenderer {
g.drawImage(densityImage, 0, 0, null);
// g.drawImage(pedestrianDensity, 0, 0, null);
g.scale(model.config.getDensityScale(), model.config.getDensityScale());
densityCalculator.destroy();
}
private void renderPotentialField(final Graphics2D g, final int width, final int height) {
......
......@@ -41,7 +41,7 @@ public class TimeCostPedestrianDensity implements ITimeCostFunction {
logger.info("timeCostFunction: " + timeCostFunction);
logger.info("gaussianCalculator: " + filter);
// the initial filtering (convolution)
// the initial filtering (convolution), TODO: we have to destroy the filter if it is no longer needed!
this.gaussianCalculator.filterImage();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment