aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/impl/GLContextShareSet.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/games/jogl/impl/GLContextShareSet.java')
-rw-r--r--src/net/java/games/jogl/impl/GLContextShareSet.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/java/games/jogl/impl/GLContextShareSet.java b/src/net/java/games/jogl/impl/GLContextShareSet.java
index 60c6b7d59..f2e1c595a 100644
--- a/src/net/java/games/jogl/impl/GLContextShareSet.java
+++ b/src/net/java/games/jogl/impl/GLContextShareSet.java
@@ -41,6 +41,7 @@ package net.java.games.jogl.impl;
import java.lang.ref.*;
import java.util.*;
+import net.java.games.jogl.*;
/** Provides a mechanism by which OpenGL contexts can share textures
and display lists in the face of multithreading and asynchronous
@@ -61,7 +62,8 @@ public class GLContextShareSet {
public void add(GLContext ctx) {
if (allShares.put(ctx, dummyValue) == null) {
- if (ctx.isCreated()) {
+ // FIXME: downcast to GLContextImpl undesirable
+ if (((GLContextImpl) ctx).isCreated()) {
createdShares.put(ctx, dummyValue);
} else {
destroyedShares.put(ctx, dummyValue);