diff options
author | Sven Gothel <[email protected]> | 2020-06-15 01:21:44 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-06-15 01:21:44 +0200 |
commit | d335d99df25cc929d06765c3f1af3944f124f6a7 (patch) | |
tree | 0ac9cc418592fc24411e6aae1b7dbe5bbd529835 /src/jogl/classes/jogamp/opengl/windows/wgl | |
parent | 5c729959363167f3b9286c4b82d8d0347ef6fca8 (diff) |
Fix 'typo' in branching, valid config index is >= 0 (not < 0)
This issue was introduced in commit 0a6a592c04a85d8124aa9d38b67f0caa1d739b75
and the '2nd choice branch' obviously never tested.
Thanks to Lathanda finding this issue on 6/14/20.
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/windows/wgl')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/windows/wgl/awt/WindowsAWTWGLGraphicsConfigurationFactory.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 342b4a750..3e5ce4fc0 100644 --- a/src/jogl/classes/jogamp/opengl/windows/wgl/awt/WindowsAWTWGLGraphicsConfigurationFactory.java +++ b/src/jogl/classes/jogamp/opengl/windows/wgl/awt/WindowsAWTWGLGraphicsConfigurationFactory.java @@ -167,7 +167,7 @@ public class WindowsAWTWGLGraphicsConfigurationFactory extends GLGraphicsConfigu } winConfig.preselectGraphicsConfiguration(drawableFactory, pfdIDs); final int gcIdx = pfdIDOSet.indexOf(Integer.valueOf(winConfig.getPixelFormatID())); - if( 0 > gcIdx ) { + if( 0 <= gcIdx ) { chosenGC = configs[gcIdx]; if(DEBUG) { System.err.println("WindowsAWTWGLGraphicsConfigurationFactory: Found matching AWT PFD ID "+winConfig.getPixelFormatID()+" -> "+winConfig); |