summaryrefslogtreecommitdiffstats
path: root/src/newt/classes
diff options
context:
space:
mode:
Diffstat (limited to 'src/newt/classes')
-rw-r--r--src/newt/classes/com/jogamp/newt/opengl/GLWindow.java7
-rw-r--r--src/newt/classes/jogamp/newt/WindowImpl.java4
2 files changed, 7 insertions, 4 deletions
diff --git a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java
index 33f136460..a6c655915 100644
--- a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java
+++ b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java
@@ -421,8 +421,8 @@ public class GLWindow extends GLAutoDrawableBase implements GLAutoDrawable, Wind
protected class GLLifecycleHook implements WindowImpl.LifecycleHook {
@Override
- public void setPreserveResourcesAtDestroy() {
- GLWindow.this.setPreserveGLStateAtDestroy(true);
+ public void preserveGLStateAtDestroy() {
+ GLWindow.this.preserveGLStateAtDestroy(true);
}
@Override
@@ -567,6 +567,9 @@ public class GLWindow extends GLAutoDrawableBase implements GLAutoDrawable, Wind
setVisible(true);
}
}
+
+ @Override
+ public final boolean isGLStatePreservationSupported() { return true; }
//----------------------------------------------------------------------
// GLDrawable methods
diff --git a/src/newt/classes/jogamp/newt/WindowImpl.java b/src/newt/classes/jogamp/newt/WindowImpl.java
index e1636ffcd..e5dd783ca 100644
--- a/src/newt/classes/jogamp/newt/WindowImpl.java
+++ b/src/newt/classes/jogamp/newt/WindowImpl.java
@@ -231,7 +231,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer
* Notifies the receiver to preserve resources (GL, ..)
* for the next destroy*() calls (only).
*/
- void setPreserveResourcesAtDestroy();
+ void preserveGLStateAtDestroy();
/**
* Invoked before Window destroy action,
@@ -966,7 +966,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer
protected void destroy(boolean preserveResources) {
if( preserveResources && null != WindowImpl.this.lifecycleHook ) {
- WindowImpl.this.lifecycleHook.setPreserveResourcesAtDestroy();
+ WindowImpl.this.lifecycleHook.preserveGLStateAtDestroy();
}
destroy();
}