mmostajab
mmostajab

Reputation: 2037

Can we MakeCurrent() two OpenGL contexts in more than one thread simultaneously?

Can we use wglMakeCurrent() function in more than one thread to use the same OpenGL context, simultaneously? or I have to create one OpenGL context per thread?

Upvotes: 3

Views: 367

Answers (1)

genpfault
genpfault

Reputation: 52085

Can we use wglMakeCurrent function in more than one thread to use the same opengl context, simultaneously?

No:

A rendering context can be current to only one thread at a time. You cannot make a rendering context current to multiple threads.


I have to create one opengl context per thread?

Yes.

Upvotes: 6

Related Questions