summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/javax/media/opengl/GLProfile.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-11-15 03:53:22 +0100
committerSven Gothel <[email protected]>2010-11-15 03:53:22 +0100
commit35d1c40fe89311f88c7303930e172adcc5d6853a (patch)
tree383f74cbd782f32d194b7f893a5365fa86093ac7 /src/jogl/classes/javax/media/opengl/GLProfile.java
parent2c1a870f56f54df3e96d68e3d5dadee0bcae7cb5 (diff)
NativeWindow AbstractGraphicsDevice: Add 'unitID' attribute and getUniqueID()
Preparation to support multiple devices on one machine, hence adding the unitID a unique ID/index of the associated GPU, or GPU affinity. Adding getUniqueID() to return a cached semantic unique string id for the device. This was removed from the temp. impl in JOGL's GLContext, added unitID. All other changes just adapt to the above.
Diffstat (limited to 'src/jogl/classes/javax/media/opengl/GLProfile.java')
-rw-r--r--src/jogl/classes/javax/media/opengl/GLProfile.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLProfile.java b/src/jogl/classes/javax/media/opengl/GLProfile.java
index 4111eb5a2..878c4024e 100644
--- a/src/jogl/classes/javax/media/opengl/GLProfile.java
+++ b/src/jogl/classes/javax/media/opengl/GLProfile.java
@@ -1476,7 +1476,7 @@ public class GLProfile {
if(null==device) {
device = defaultDevice;
}
- String deviceKey = GLContext.getUniqueDeviceString(device);
+ String deviceKey = device.getUniqueID();
HashMap map = (HashMap) deviceConn2ProfileMap.get(deviceKey);
if(null==map) {
map = new HashMap();
@@ -1491,7 +1491,7 @@ public class GLProfile {
private static void setProfileMap(AbstractGraphicsDevice device, HashMap/*<GL-String, GLProfile>*/mappedProfiles) {
validateInitialization();
synchronized ( deviceConn2ProfileMap ) {
- deviceConn2ProfileMap.put(GLContext.getUniqueDeviceString(device), mappedProfiles);
+ deviceConn2ProfileMap.put(device.getUniqueID(), mappedProfiles);
}
}