aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/impl/FunctionAvailabilityCache.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/com/sun/opengl/impl/FunctionAvailabilityCache.java')
-rw-r--r--src/classes/com/sun/opengl/impl/FunctionAvailabilityCache.java15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/classes/com/sun/opengl/impl/FunctionAvailabilityCache.java b/src/classes/com/sun/opengl/impl/FunctionAvailabilityCache.java
index c2392baa9..4eb34b7f2 100644
--- a/src/classes/com/sun/opengl/impl/FunctionAvailabilityCache.java
+++ b/src/classes/com/sun/opengl/impl/FunctionAvailabilityCache.java
@@ -41,10 +41,8 @@ package com.sun.opengl.impl;
import javax.media.opengl.*;
import java.util.*;
-import java.util.regex.*;
-import java.awt.Canvas;
-import java.awt.Graphics;
-import java.awt.GraphicsConfiguration;
+// FIXME: refactor Java SE dependencies
+//import java.util.regex.*;
import java.lang.reflect.*;
/**
@@ -325,6 +323,7 @@ public final class FunctionAvailabilityCache {
major = Integer.valueOf(tok.nextToken()).intValue();
minor = Integer.valueOf(tok.nextToken()).intValue();
+ /*
// See if there's version-specific information which might
// imply a more recent OpenGL version
tok = new StringTokenizer(versionString, " ");
@@ -347,14 +346,22 @@ public final class FunctionAvailabilityCache {
}
}
}
+ */
}
}
catch (Exception e)
{
+ // FIXME: refactor desktop OpenGL dependencies and make this
+ // class work properly for OpenGL ES
+ e.printStackTrace();
+ major = 1;
+ minor = 0;
+ /*
throw (IllegalArgumentException)
new IllegalArgumentException(
"Illegally formatted version identifier: \"" + versionString + "\"")
.initCause(e);
+ */
}
}