Multiple OpenGLControl on the same form
- Dominant language
- C#
- Stars
- 804
- Forks
- 294
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 1
Description
Hi.
I found an issue when we have multiple OpenGLControl on the same form, but I think generally on the same thread.
I can see that the situation is already handled within the PreGLCall, that does the MakeCurrent in case it is needed. The problem I have, with FBO RenderContext, is that when the control is resized (OnSizeChanged) strange things happens. For example the area is clipped and not all the area is usable.
I think the problem is that in the OnSizeChanged there is an OpenGL.SetDimensions called before any MakeCurrent.
I tried to MakeCurrent before it and everything works.
Hope to be helpful.
Davide
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.