aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/classes
diff options
context:
space:
mode:
Diffstat (limited to 'src/newt/classes')
-rw-r--r--src/newt/classes/com/sun/javafx/newt/OffscreenWindow.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/newt/classes/com/sun/javafx/newt/OffscreenWindow.java b/src/newt/classes/com/sun/javafx/newt/OffscreenWindow.java
index c8e3c7c9e..b5efc03e8 100644
--- a/src/newt/classes/com/sun/javafx/newt/OffscreenWindow.java
+++ b/src/newt/classes/com/sun/javafx/newt/OffscreenWindow.java
@@ -66,6 +66,11 @@ public class OffscreenWindow extends Window implements SurfaceChangeable {
// nop
}
+ public void invalidate() {
+ super.invalidate();
+ disposeSurfaceHandle();
+ }
+
public void disposeSurfaceHandle() {
surfaceHandle = 0;
}