diff options
author | Sven Gothel <[email protected]> | 2015-04-01 16:00:20 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-04-01 16:00:20 +0200 |
commit | 5deabf720f1101b39376cb211c39f6f0c3474153 (patch) | |
tree | 48b02b23aa8dd72db06920a44599174d3fffa43b /src/jogl/classes | |
parent | b142c7130c05c9c0ae97841b4ff626f528c45438 (diff) |
Bug 1153 - Adopt to ArrayHashSet change, don't use deprecated ctor (gluegen commit c156343fec33ceea7f238b9766a9f4985fb92687)
Diffstat (limited to 'src/jogl/classes')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/util/jpeg/JPEGDecoder.java | 2 | ||||
-rw-r--r-- | src/jogl/classes/jogamp/opengl/windows/wgl/awt/WindowsAWTWGLGraphicsConfigurationFactory.java | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/util/jpeg/JPEGDecoder.java b/src/jogl/classes/jogamp/opengl/util/jpeg/JPEGDecoder.java index 8254f164c..24bb995dd 100644 --- a/src/jogl/classes/jogamp/opengl/util/jpeg/JPEGDecoder.java +++ b/src/jogl/classes/jogamp/opengl/util/jpeg/JPEGDecoder.java @@ -317,7 +317,7 @@ public class JPEGDecoder { this.precision = precision; this.scanLines = scanLines; this.samplesPerLine = samplesPerLine; - compIDs = new ArrayHashSet<Integer>(componentsCount); + compIDs = new ArrayHashSet<Integer>(false, componentsCount, ArrayHashSet.DEFAULT_LOAD_FACTOR); comps = new ComponentIn[componentsCount]; this.compCount = componentsCount; this.qtt = qtt; diff --git a/src/jogl/classes/jogamp/opengl/windows/wgl/awt/WindowsAWTWGLGraphicsConfigurationFactory.java b/src/jogl/classes/jogamp/opengl/windows/wgl/awt/WindowsAWTWGLGraphicsConfigurationFactory.java index 83e4ae472..342b4a750 100644 --- a/src/jogl/classes/jogamp/opengl/windows/wgl/awt/WindowsAWTWGLGraphicsConfigurationFactory.java +++ b/src/jogl/classes/jogamp/opengl/windows/wgl/awt/WindowsAWTWGLGraphicsConfigurationFactory.java @@ -152,7 +152,8 @@ public class WindowsAWTWGLGraphicsConfigurationFactory extends GLGraphicsConfigu // collect all available PFD IDs final GraphicsConfiguration[] configs = device.getConfigurations(); final int[] pfdIDs = new int[configs.length]; - final ArrayHashSet<Integer> pfdIDOSet = new ArrayHashSet<Integer>(); + final ArrayHashSet<Integer> pfdIDOSet = + new ArrayHashSet<Integer>(false, ArrayHashSet.DEFAULT_INITIAL_CAPACITY, ArrayHashSet.DEFAULT_LOAD_FACTOR); for (int i = 0; i < configs.length; i++) { final GraphicsConfiguration gc = configs[i]; pfdIDs[i] = Win32SunJDKReflection.graphicsConfigurationGetPixelFormatID(gc); |