aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/impl/GLDrawableImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/com/sun/opengl/impl/GLDrawableImpl.java')
-rw-r--r--src/classes/com/sun/opengl/impl/GLDrawableImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/classes/com/sun/opengl/impl/GLDrawableImpl.java b/src/classes/com/sun/opengl/impl/GLDrawableImpl.java
index 0c60d6d09..0818ac1c4 100644
--- a/src/classes/com/sun/opengl/impl/GLDrawableImpl.java
+++ b/src/classes/com/sun/opengl/impl/GLDrawableImpl.java
@@ -61,8 +61,8 @@ public abstract class GLDrawableImpl implements GLDrawable {
/** For offscreen GLDrawables (pbuffers and "pixmap" drawables),
indicates that native resources should be reclaimed. */
- public void destroy() throws GLException {
- setRealized(false);
+ public void destroy() {
+ throw new GLException("Should not call this (should only be called for offscreen GLDrawables)");
}
public void swapBuffers() throws GLException {