Skip to content

Commit e888176

Browse files
stephengoldpavly-gerges
authored andcommitted
FilterPostProcessor: update camera frustum during reshape() (jMonkeyEngine#1812)
1 parent fb47f6e commit e888176

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009-2021 jMonkeyEngine
2+
* Copyright (c) 2009-2022 jMonkeyEngine
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -453,7 +453,7 @@ public void reshape(ViewPort vp, int w, int h) {
453453
//this has no effect at first init but is useful when resizing the canvas with multi views
454454
cam.setViewPort(left, right, bottom, top);
455455
//resizing the camera to fit the new viewport and saving original dimensions
456-
cam.resize(w, h, false);
456+
cam.resize(w, h, true);
457457
left = cam.getViewPortLeft();
458458
right = cam.getViewPortRight();
459459
top = cam.getViewPortTop();

0 commit comments

Comments
 (0)