user3489280
user3489280

Reputation: 1

How to check if a GLXcontext is remote or local

I'm experiencing problems since I'm calling cuGLGetDevices() on an application which uses the glXGetCurrentContext (https://www.opengl.org/sdk/docs/man2/xhtml/glXGetCurrentContext.xml) function to query an OpenGL context. The context must be local and not remote via ssh for my app to work properly.

Is there any way I can detect if the context is remote or local?

Upvotes: 0

Views: 109

Answers (1)

Andrey Sidorov
Andrey Sidorov

Reputation: 25466

You need to use glXIsDirect function

Upvotes: 3

Related Questions