Getting Display* pointer via glut

I’d like to use pbuffers in a program I’ve already written, which uses glut. To use the pbuffers I need to be able to get the Display* pointer to the window. Adapting the program to use glX would be quite a lengthy procedure. Does anyone know a way in which I can get this pointer via glut please? Or is it a lost cause?

Thanks very much

Display* glXGetCurrentDisplay()

gets the display associated with the current context. It’s not supported by all glX-versions though.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.