Hi,
I'm trying to render multiple viewports at once (e.g. 3d editor where you have multiple views), however only the last GLControl is rendering correctly. I suspect I'm missing something obvious here. Any help would be greatly appreciated.
Many thanks
Comments
Re: Multiple GLControls in one window - trouble rendering them a
Call .MakeCurrent() on the control immediately before performing any operation on it.
For example:
This will make the first control clear to green and the second control clear to red.
Adding the glControl.MakeCurrent() for the respective control in the Paint methods will allow you to draw to that control.
I've made a quick test case of this if you want some more source code to look at.