diff options
Diffstat (limited to 'src/PrintCanvas3D/OffScreenCanvas3D.java')
-rw-r--r-- | src/PrintCanvas3D/OffScreenCanvas3D.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/PrintCanvas3D/OffScreenCanvas3D.java b/src/PrintCanvas3D/OffScreenCanvas3D.java index b089e5c..1b00768 100644 --- a/src/PrintCanvas3D/OffScreenCanvas3D.java +++ b/src/PrintCanvas3D/OffScreenCanvas3D.java @@ -68,6 +68,9 @@ class OffScreenCanvas3D extends Canvas3D { waitForOffScreenRendering(); bImage = getOffScreenBuffer().getImage(); + // To release the reference of buffer inside Java 3D. + setOffScreenBuffer(null); + return bImage; } |