Fix 0x0 render target creation in compositor (#189)
This commit is contained in:
committed by
GitHub
parent
32e81a82c5
commit
18f8224d90
@@ -177,7 +177,7 @@ open class Layer internal constructor() {
|
||||
}
|
||||
|
||||
private fun shouldCreateLayerTarget(activeRenderTarget: RenderTarget): Boolean {
|
||||
return layerTarget == null || (layerTarget?.width != activeRenderTarget.width || layerTarget?.height != activeRenderTarget.height)
|
||||
return layerTarget == null || ((layerTarget?.width != activeRenderTarget.width || layerTarget?.height != activeRenderTarget.height) && activeRenderTarget.width > 0 && activeRenderTarget.height > 0)
|
||||
}
|
||||
|
||||
private fun createLayerTarget(activeRenderTarget: RenderTarget, drawer: Drawer) {
|
||||
@@ -269,4 +269,4 @@ class Compositor : Extension {
|
||||
composite.drawLayer(drawer)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user