commit 9ecac8cd4688b18b4a576079054003d90e6a9b66
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Mon Mar 2 23:12:06 2020 +0000

    Size of the FBO internal to Nodes is now NO MORE taken from the Mesh's stretch values.
    Instead, the size is copied from child's FBO size (if there is one) or if the child is a leaf with texture in it (which is sizeless) then we get the default 100x100 ( which means we probably have to explicitly call Node.resizeFBO() )

diff --git a/src/main/java/org/distorted/library/main/DistortedNode.java b/src/main/java/org/distorted/library/main/DistortedNode.java
index 316e6db..553b5f2 100644
--- a/src/main/java/org/distorted/library/main/DistortedNode.java
+++ b/src/main/java/org/distorted/library/main/DistortedNode.java
@@ -240,8 +240,28 @@ public class DistortedNode implements InternalChildrenList.Parent
 
   private DistortedFramebuffer allocateNewFBO()
     {
-    int width  = mFboW <= 0 ? (int)mMesh.getStretchX() : mFboW;
-    int height = mFboH <= 0 ? (int)mMesh.getStretchY() : mFboH;
+    int width, height;
+
+    if( mFboW>0 && mFboH>0 )
+      {
+      width = mFboW;
+      height= mFboH;
+      }
+    else
+      {
+      if( mSurface instanceof DistortedFramebuffer )
+        {
+        DistortedFramebuffer fbo = (DistortedFramebuffer)mSurface;
+        width = fbo.mWidth;
+        height= fbo.mHeight;
+        }
+      else
+        {
+        width = 100;
+        height= 100;
+        }
+      }
+
     return new DistortedFramebuffer(1,mFboDepthStencil, InternalSurface.TYPE_TREE, width, height);
     }
 
@@ -491,7 +511,7 @@ public class DistortedNode implements InternalChildrenList.Parent
 /**
  * Resizes the DistortedFramebuffer object that we render this Node to.
  */
-  public void resize(int width, int height)
+  public void resizeFBO(int width, int height)
     {
     mFboW = width;
     mFboH = height;
diff --git a/src/main/java/org/distorted/library/main/DistortedScreen.java b/src/main/java/org/distorted/library/main/DistortedScreen.java
index c2f7040..9c90382 100644
--- a/src/main/java/org/distorted/library/main/DistortedScreen.java
+++ b/src/main/java/org/distorted/library/main/DistortedScreen.java
@@ -68,7 +68,7 @@ public class DistortedScreen extends DistortedFramebuffer
 /**
  * Create a new Screen. Initially 1x1 in size.
  * <p>
- * Has to be followed by a 'resize()' to set the size.
+ * Has to be followed by a 'resizeFBO()' to set the size.
  */
   public DistortedScreen()
     {
