浏览代码

FilterPostProcessor: update camera frustum during reshape() (#1812)

Stephen Gold 3 年之前
父节点
当前提交
90ec5017ca
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      jme3-core/src/main/java/com/jme3/post/FilterPostProcessor.java

+ 2 - 2
jme3-core/src/main/java/com/jme3/post/FilterPostProcessor.java

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2009-2021 jMonkeyEngine
+ * Copyright (c) 2009-2022 jMonkeyEngine
  * All rights reserved.
  * All rights reserved.
  *
  *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
@@ -453,7 +453,7 @@ public class FilterPostProcessor implements SceneProcessor, Savable {
         //this has no effect at first init but is useful when resizing the canvas with multi views
         //this has no effect at first init but is useful when resizing the canvas with multi views
         cam.setViewPort(left, right, bottom, top);
         cam.setViewPort(left, right, bottom, top);
         //resizing the camera to fit the new viewport and saving original dimensions
         //resizing the camera to fit the new viewport and saving original dimensions
-        cam.resize(w, h, false);
+        cam.resize(w, h, true);
         left = cam.getViewPortLeft();
         left = cam.getViewPortLeft();
         right = cam.getViewPortRight();
         right = cam.getViewPortRight();
         top = cam.getViewPortTop();
         top = cam.getViewPortTop();