diff options
author | Sven Gothel <[email protected]> | 2023-01-16 00:54:06 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-01-16 00:54:06 +0100 |
commit | 27fc0cff4cde19bb7dd711dfab8f58b42b110836 (patch) | |
tree | 1f4cadb28282215b393090a4ee69c84fa5760a8c | |
parent | edf0d33ba913fd37f9e6ce0a771d8dfb6fa962e6 (diff) | |
parent | ecbd490cfaaeb44905ce3009004966c1f99a0675 (diff) |
Merge pull request #107 from ndjojo/platform-extensions
Return either glXQueryClientString or glXQueryExtensionsString when getting the GLX extensions
-rw-r--r-- | src/jogl/classes/jogamp/opengl/x11/glx/X11GLXContext.java | 12 |
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(); |