diff --git a/build.gradle b/build.gradle index 95ce1060..07538e04 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { allprojects { group 'org.openrndr.extra' - version '0.0.27' + version '0.0.28' } repositories { diff --git a/orx-compositor/src/main/kotlin/Compositor.kt b/orx-compositor/src/main/kotlin/Compositor.kt index bf5f94c3..cecdb58b 100644 --- a/orx-compositor/src/main/kotlin/Compositor.kt +++ b/orx-compositor/src/main/kotlin/Compositor.kt @@ -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) + } } }