Lines 40-59
Link Here
|
40 |
|
40 |
|
41 |
package jogamp.opengl.x11.glx; |
41 |
package jogamp.opengl.x11.glx; |
42 |
|
42 |
|
43 |
import java.nio.*; |
|
|
44 |
import java.util.*; |
45 |
|
46 |
import javax.media.opengl.*; |
47 |
import javax.media.nativewindow.*; |
48 |
import javax.media.nativewindow.x11.X11GraphicsDevice; |
49 |
|
50 |
import com.jogamp.common.nio.Buffers; |
43 |
import com.jogamp.common.nio.Buffers; |
51 |
import com.jogamp.common.util.VersionNumber; |
44 |
import com.jogamp.common.util.VersionNumber; |
52 |
import jogamp.opengl.*; |
|
|
53 |
import com.jogamp.gluegen.runtime.ProcAddressTable; |
45 |
import com.jogamp.gluegen.runtime.ProcAddressTable; |
54 |
import com.jogamp.gluegen.runtime.opengl.GLProcAddressResolver; |
46 |
import com.jogamp.gluegen.runtime.opengl.GLProcAddressResolver; |
55 |
import jogamp.nativewindow.x11.X11Util; |
47 |
import jogamp.nativewindow.x11.X11Util; |
|
|
48 |
import jogamp.opengl.GLContextImpl; |
49 |
import jogamp.opengl.GLContextShareSet; |
50 |
import jogamp.opengl.GLDrawableFactoryImpl; |
51 |
import jogamp.opengl.GLDrawableImpl; |
56 |
|
52 |
|
|
|
53 |
import javax.media.nativewindow.AbstractGraphicsConfiguration; |
54 |
import javax.media.nativewindow.AbstractGraphicsDevice; |
55 |
import javax.media.nativewindow.NativeSurface; |
56 |
import javax.media.nativewindow.x11.X11GraphicsDevice; |
57 |
import javax.media.opengl.GLCapabilitiesImmutable; |
58 |
import javax.media.opengl.GLContext; |
59 |
import javax.media.opengl.GLException; |
60 |
import javax.media.opengl.GLProfile; |
61 |
import java.nio.ByteBuffer; |
62 |
import java.nio.IntBuffer; |
63 |
import java.util.HashMap; |
64 |
import java.util.Map; |
65 |
|
57 |
public abstract class X11GLXContext extends GLContextImpl { |
66 |
public abstract class X11GLXContext extends GLContextImpl { |
58 |
protected static final boolean TRACE_CONTEXT_CURRENT = false; // true; |
67 |
protected static final boolean TRACE_CONTEXT_CURRENT = false; // true; |
59 |
|
68 |
|
Lines 246-254
Link Here
|
246 |
try { |
255 |
try { |
247 |
// critical path, a remote display might not support this command, |
256 |
// critical path, a remote display might not support this command, |
248 |
// hence we need to catch the X11 Error within this block. |
257 |
// hence we need to catch the X11 Error within this block. |
249 |
X11Util.XSync(display, false); |
258 |
X11Util.XSync(display, false, isSurfaceLocking() ); |
250 |
ctx = _glXExt.glXCreateContextAttribsARB(display, config.getFBConfig(), share, direct, attribs); |
259 |
ctx = _glXExt.glXCreateContextAttribsARB(display, config.getFBConfig(), share, direct, attribs); |
251 |
X11Util.XSync(display, false); |
260 |
X11Util.XSync(display, false, isSurfaceLocking() ); |
252 |
} catch (RuntimeException re) { |
261 |
} catch (RuntimeException re) { |
253 |
if(DEBUG) { |
262 |
if(DEBUG) { |
254 |
Throwable t = new Throwable("Info: X11GLXContext.createContextARBImpl glXCreateContextAttribsARB failed with "+getGLVersion(major, minor, ctp, "@creation"), re); |
263 |
Throwable t = new Throwable("Info: X11GLXContext.createContextARBImpl glXCreateContextAttribsARB failed with "+getGLVersion(major, minor, ctp, "@creation"), re); |