@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/module.js CHANGED
@@ -25994,13 +25994,14 @@ ShaderPool.init();
25994
25994
  } else {
25995
25995
  cameras.forEach(function(camera) {
25996
25996
  componentsManager.callCameraOnBeginRender(camera);
25997
- // `pixelViewport` width or height is `0` will cause internal render target create error and return can save performance
25998
25997
  var pixelViewport = camera.pixelViewport;
25999
- if (pixelViewport.width !== 0 || pixelViewport.height !== 0) {
26000
- Logger.warn("Camera pixelViewport width or height is 0.");
25998
+ // `pixelViewport` width or height is `0` will cause internal render target create error and return can save performance
25999
+ if (pixelViewport.width !== 0 && pixelViewport.height !== 0) {
26001
26000
  // Update post process manager
26002
26001
  scene.postProcessManager._update(camera);
26003
26002
  camera.render();
26003
+ } else {
26004
+ Logger.warn("Camera pixelViewport width or height is 0.");
26004
26005
  }
26005
26006
  componentsManager.callCameraOnEndRender(camera);
26006
26007
  // Temp solution for webgl implement bug