diff --git a/orx-compositor/src/main/kotlin/Compositor.kt b/orx-compositor/src/main/kotlin/Compositor.kt index 555f384b..dd675701 100644 --- a/orx-compositor/src/main/kotlin/Compositor.kt +++ b/orx-compositor/src/main/kotlin/Compositor.kt @@ -93,8 +93,8 @@ open class Layer internal constructor() { } if (postBufferCache.isEmpty()) { - postBufferCache += colorBuffer(activeRenderTarget.width, activeRenderTarget.height, type = colorType) - postBufferCache += colorBuffer(activeRenderTarget.width, activeRenderTarget.height, type = colorType) + postBufferCache += persistent { colorBuffer(activeRenderTarget.width, activeRenderTarget.height, type = colorType) } + postBufferCache += persistent { colorBuffer(activeRenderTarget.width, activeRenderTarget.height, type = colorType) } } }