aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes
diff options
context:
space:
mode:
authorndjojo <[email protected]>2021-01-20 16:11:57 -0500
committerGitHub <[email protected]>2021-01-20 16:11:57 -0500
commitecbd490cfaaeb44905ce3009004966c1f99a0675 (patch)
tree99526e1cd8aae3a7279fa4e6364a0f211da4e395 /src/jogl/classes
parentecf6e499d3b582d651a28693c871ca14d6e8c991 (diff)
Update X11GLXContext.java
Diffstat (limited to 'src/jogl/classes')
-rw-r--r--src/jogl/classes/jogamp/opengl/x11/glx/X11GLXContext.java12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXContext.java b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXContext.java
index 8b80e4312..1204432b4 100644
--- a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXContext.java
+++ b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXContext.java
@@ -551,27 +551,19 @@ public class X11GLXContext extends GLContextImpl {
", server: "+ GLXUtil.getGLXServerVersionNumber(x11Device));
}
if(((X11GLXDrawableFactory)drawable.getFactoryImpl()).isGLXVersionGreaterEqualOneOne(x11Device)) {
- {
+ if (ns.getScreenIndex() < 0) {
final String ret = GLX.glXGetClientString(x11Device.getHandle(), GLX.GLX_EXTENSIONS);
if (DEBUG) {
System.err.println("GLX extensions (glXGetClientString): " + ret);
}
sb.append(ret).append(" ");
- }
- {
+ } else {
final String ret = GLX.glXQueryExtensionsString(x11Device.getHandle(), ns.getScreenIndex());
if (DEBUG) {
System.err.println("GLX extensions (glXQueryExtensionsString): " + ret);
}
sb.append(ret).append(" ");
}
- {
- final String ret = GLX.glXQueryServerString(x11Device.getHandle(), ns.getScreenIndex(), GLX.GLX_EXTENSIONS);
- if (DEBUG) {
- System.err.println("GLX extensions (glXQueryServerString): " + ret);
- }
- sb.append(ret).append(" ");
- }
}
} finally {
x11Device.unlock();