summaryrefslogtreecommitdiffstats
path: root/src/newt
diff options
context:
space:
mode:
Diffstat (limited to 'src/newt')
-rw-r--r--src/newt/classes/com/sun/javafx/newt/opengl/GLWindow.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/newt/classes/com/sun/javafx/newt/opengl/GLWindow.java b/src/newt/classes/com/sun/javafx/newt/opengl/GLWindow.java
index 1404fea7c..90a3d18ba 100644
--- a/src/newt/classes/com/sun/javafx/newt/opengl/GLWindow.java
+++ b/src/newt/classes/com/sun/javafx/newt/opengl/GLWindow.java
@@ -515,6 +515,10 @@ public class GLWindow extends Window implements GLAutoDrawable {
}
public void display() {
+ display(false);
+ }
+
+ public void display(boolean forceReshape) {
if(getSurfaceHandle()!=0) {
if(runPumpMessages) {
displayPumpMessage.run(window.getScreen().getDisplay());
@@ -526,6 +530,9 @@ public class GLWindow extends Window implements GLAutoDrawable {
destroy();
sendDestroy=false;
} else {
+ if(forceReshape) {
+ sendReshape = true;
+ }
helper.invokeGL(drawable, context, displayAction, initAction);
}
}