GLFW as buffer or texture debug window inside another OpenGL app?


Dear GLFW enthusiasts!

I had an idea to use GLFW as an external debug helper window to display for example depth buffer in it. However I had no luck to run it inside another OpenGL pipeline.

Is it at all possible to keep a GLFW window and display some data in it coming from another OpenGL app? Or will it be to messy to keep GLFW pipeline and that app’s pipeline separate? I’m a bit tired of using glBlitFramebuffer and wish to have my own real-time buffer debug tool.



You can share quite a bit of OpenGL state information between OpenGL contexts with shared contexts, however currently GLFW can only share contexts with other GLFW windows so this would not be possible with a window created using another API.