GLPbuffer doesn't work in Remote Desktop?
Posted by cznlzq on Nov 13, 2012; 3:24pm
URL: https://forum.jogamp.org/GLPbuffer-doesn-t-work-in-Remote-Desktop-tp4026922.html
Hi,
I was trying to use the Pbuffer in JOGL and I found out the it doesn't work in Remote Desktop in Windows System.
I'm not sure it's bug or not. Running in local machine is great but remote desktop is not working.
A very simple example is given below.
public testJOGL() {
GLCapabilities caps = new GLCapabilities(GLProfile.getDefault());
GLCanvas canvas = new GLCanvas(caps);
this.setLayout(new BorderLayout());
this.add(canvas, BorderLayout.CENTER);
canvas.addGLEventListener(this);
//this doesn't work in remote desktop===========================================
GLPbuffer offscreenPBuffer = GLDrawableFactory.getFactory(GLProfile.getDefault()).createGLPbuffer(
null, caps, null,
600, 400,
canvas.getContext());
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Run the animation loop using the fixed-rate Frame-per-second animator,
// which calls back display() at this fixed-rate (FPS).
animator = new FPSAnimator(canvas, REFRESH_FPS, true);
}
And it tells:
Exception in thread "main" javax.media.opengl.GLException: Pbuffer not available with device: WindowsGraphicsDevice[type Windows, connection decon, unitID 0, handle 0x0]
Does anyone have any ideas about this?
Thanks.