Hi,
I am using OpenGL for a specific purpose. I run opengl in one thread which opens a window and keeps running all the time. There are other threads which are spawned upon some external event. These threads also require to use the already created window for some rendering purpose.
So in order to set the windowing environment to the window which is already created in other thread, I used glutSetWindow. But this generates an error given below
X Error of failed request: BadAccess (attempt to access private resource denied)
Major opcode of failed request: 129 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 44
Current serial number in output stream: 44
Which means that window created in one thread cant be used by others.
So is there any way in which I can render into the window already created from the newly created threads. Though openGL is not meant to be run in threads, it would be really helpful if I can get any assistance in this regard. Thank you very much for ur time.
Nagender.