protongun's picture

Calling GLControl.SwapBuffers() from a thread where a GLControl's context is not current

Let glCtrl be an instance of GLControl

Can I call glCtrl.SwapBuffers() from a thread where glCtrl's context is not current?

I am confused because a Context also has a SwapBuffers() method and it seems all context-specific calls must be made on a thread where that context is current (or does that only apply to GL commands ?)


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Frassle's picture

SwapBuffers isn't actually a GL function, as such it does not make use of the OpenGL thread context making it safe to call from other threads.