[orx-view-box] configure internal render target color type using RenderTarget.active
This commit is contained in:
@@ -207,7 +207,7 @@ class ViewBox(
|
|||||||
val art = RenderTarget.active
|
val art = RenderTarget.active
|
||||||
renderTarget =
|
renderTarget =
|
||||||
renderTarget(widthCeil, heightCeil, contentScale ?: art.contentScale, multisample ?: art.multisample) {
|
renderTarget(widthCeil, heightCeil, contentScale ?: art.contentScale, multisample ?: art.multisample) {
|
||||||
colorBuffer()
|
colorBuffer(type = art.colorBuffer(0).type)
|
||||||
depthBuffer()
|
depthBuffer()
|
||||||
}
|
}
|
||||||
if ((multisample ?: art.multisample) != BufferMultisample.Disabled) {
|
if ((multisample ?: art.multisample) != BufferMultisample.Disabled) {
|
||||||
|
|||||||
Reference in New Issue
Block a user