@galacean/engine-core 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +4 -3
- package/dist/main.js.map +1 -1
- package/dist/module.js +4 -3
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -25998,13 +25998,14 @@ ShaderPool.init();
|
|
|
25998
25998
|
} else {
|
|
25999
25999
|
cameras.forEach(function(camera) {
|
|
26000
26000
|
componentsManager.callCameraOnBeginRender(camera);
|
|
26001
|
-
// `pixelViewport` width or height is `0` will cause internal render target create error and return can save performance
|
|
26002
26001
|
var pixelViewport = camera.pixelViewport;
|
|
26003
|
-
|
|
26004
|
-
|
|
26002
|
+
// `pixelViewport` width or height is `0` will cause internal render target create error and return can save performance
|
|
26003
|
+
if (pixelViewport.width !== 0 && pixelViewport.height !== 0) {
|
|
26005
26004
|
// Update post process manager
|
|
26006
26005
|
scene.postProcessManager._update(camera);
|
|
26007
26006
|
camera.render();
|
|
26007
|
+
} else {
|
|
26008
|
+
Logger.warn("Camera pixelViewport width or height is 0.");
|
|
26008
26009
|
}
|
|
26009
26010
|
componentsManager.callCameraOnEndRender(camera);
|
|
26010
26011
|
// Temp solution for webgl implement bug
|