Im working on a program which should have multiple views of a model. I would like to use multiple
GLControls` for that.
Is there any possibility to create multiple GLControl which use the same GraphicsContext?
I successfully created this on a multithreaded enviroment, but the contexts are not shared then. So I have to load the model for each context, which is bad.
My pseudocode for a single threaded enviroment looks something like this:
glControl1.MakeCurrent();
// Render here
glControl1.SwapBuffers();
glControl2.MakeCurrent();
// Render here too
glControl2.SwapBuffers();
I tried this by creating multiple contexts on the thread but it crashed with
Error: 170" at "MakeCurrent()
of glControl2
. (Even glControl2.Context.MakeCurrent(null)
before switching the context didn`t work)
Maybe you have some hints which can help me.