summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-12-17 00:16:13 +0100
committerSven Gothel <[email protected]>2010-12-17 00:16:13 +0100
commit45188f32557fade1d4d289e84de54aeee9d1efa3 (patch)
tree36da3926e62c6848f54c1751261927ac11668aed /src/jogl/classes/com/jogamp/opengl
parent80cef32b190f7267d1ef9af7626a1bf75dc47056 (diff)
SharedResourceRunner: Expose convenient 'getShared()' w/o creation
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/impl/SharedResourceRunner.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/impl/SharedResourceRunner.java b/src/jogl/classes/com/jogamp/opengl/impl/SharedResourceRunner.java
index 1ea83f84a..765c6620d 100644
--- a/src/jogl/classes/com/jogamp/opengl/impl/SharedResourceRunner.java
+++ b/src/jogl/classes/com/jogamp/opengl/impl/SharedResourceRunner.java
@@ -83,6 +83,11 @@ public class SharedResourceRunner implements Runnable {
this.impl = impl;
}
+ public SharedResourceRunner.Resource getShared(AbstractGraphicsDevice device) {
+ String connection = device.getConnection();
+ return impl.mapGet(connection);
+ }
+
public SharedResourceRunner.Resource getOrCreateShared(AbstractGraphicsDevice device) {
String connection = device.getConnection();
SharedResourceRunner.Resource sr = impl.mapGet(connection);