aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/impl/x11/X11GLContext.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/games/jogl/impl/x11/X11GLContext.java')
-rw-r--r--src/net/java/games/jogl/impl/x11/X11GLContext.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/net/java/games/jogl/impl/x11/X11GLContext.java b/src/net/java/games/jogl/impl/x11/X11GLContext.java
index 40e462fb3..359d0c95c 100644
--- a/src/net/java/games/jogl/impl/x11/X11GLContext.java
+++ b/src/net/java/games/jogl/impl/x11/X11GLContext.java
@@ -174,9 +174,7 @@ public abstract class X11GLContext extends GLContext {
protected void destroyImpl() throws GLException {
if (context != 0) {
- if (!GLX.glXDestroyContext(mostRecentDisplay, context)) {
- throw new GLException("Unable to delete OpenGL context");
- }
+ GLX.glXDestroyContext(mostRecentDisplay, context);
if (DEBUG) {
System.err.println("!!! Destroyed OpenGL context " + context);
}