[orx-view-box] configure internal render target color type using RenderTarget.active

This commit is contained in:
Edwin Jakobs
2022-12-28 14:04:10 +01:00
parent 391ebce42b
commit 19593ca6cd

View File

@@ -207,7 +207,7 @@ class ViewBox(
val art = RenderTarget.active
renderTarget =
renderTarget(widthCeil, heightCeil, contentScale ?: art.contentScale, multisample ?: art.multisample) {
colorBuffer()
colorBuffer(type = art.colorBuffer(0).type)
depthBuffer()
}
if ((multisample ?: art.multisample) != BufferMultisample.Disabled) {