PDA

View Full Version : Can two separate processes render to the same OpenGL window?



10-14-2005, 03:45 PM
Can two separate processes render to the same OpenGL window? Odd question I know, but I was just wondering this.

Thanks

Relic
10-16-2005, 10:20 PM
No, that would open the door for all sorts of abuses. The wglMakeCurrent of the process not owning the window should fail. Implementations allowing this are broken, IMO.
But you can render with multiple threads of one process simultaneaously. But don't expect that to render any faster.
Search the OpenGL on Windows forum for some of my answers to multithreading. It's not too difficult to set it up.