dwmkerr / dwmkerr/sharpgl

Is it necessary to start a new thread for opengl's current context?

Open
#107 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
804
Forks
294
Avg merge
3d 23h
Merged PRs (30d)
1

Description

I just saw something interesting here(https://www.opengl.org/wiki/Creating_an_OpenGL_Context_(WGL)). It says that 'The current context is thread-specific; each thread can have a different context current, and it's dangerous to have the same context current in multiple threads.'
So maybe it 's necessary to start a new thread for opengl's rendering in OpenGLControl and SceneControl in case that there are more than one OpenGLControls in a Winform or app.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.