summaryrefslogtreecommitdiffstats
path: root/src/jogl
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl')
-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();