Bump to OPENRNDR 0.3.43-rc.14

This commit is contained in:
Edwin Jakobs
2020-07-02 18:02:06 +02:00
parent fee5475fe9
commit 0b0691e9ae
7 changed files with 42 additions and 30 deletions

View File

@@ -124,11 +124,16 @@ internal class ConvolutionPyramid(width: Int, height: Int,
fun destroy() {
result.destroy()
(levelsIn+levelsOut).forEach {
it.colorBuffers.forEach { it.destroy() }
it.detachColorBuffers()
it.colorAttachments.forEach {
when(it) {
is ColorBufferAttachment -> it.colorBuffer.destroy()
is CubemapAttachment -> it.cubemap.destroy()
is ArrayTextureAttachment -> it.arrayTexture.destroy()
is ArrayCubemapAttachment -> it.arrayCubemap.destroy()
}
}
it.detachColorAttachments()
it.destroy()
}
}
}