untrack post filter colorbuffer cache

This commit is contained in:
Edwin Jakobs
2019-05-21 15:30:29 +02:00
parent 75320cc750
commit d011c951dc
2 changed files with 7 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ plugins {
allprojects {
group 'org.openrndr.extra'
version '0.0.27'
version '0.0.28'
}
repositories {

View File

@@ -67,8 +67,12 @@ class Layer internal constructor() {
}
if (postBufferCache.isEmpty()) {
postBufferCache += colorBuffer(rt.width, rt.height)
postBufferCache += colorBuffer(rt.width, rt.height)
postBufferCache += colorBuffer(rt.width, rt.height).apply {
Session.active.untrack(this)
}
postBufferCache += colorBuffer(rt.width, rt.height).apply {
Session.active.untrack(this)
}
}
}