dwmkerr / sharpgl

Use OpenGL in .NET applications. SharpGL wraps all modern OpenGL features and offers a powerful scene graph to aid development.
MIT License
749 stars 300 forks source link

OpenGLControl Undocking Issue #194

Open GianlucaGrotto opened 3 years ago

GianlucaGrotto commented 3 years ago

I have a Form with OpenGLControl inside (C# program).

Those are the properties:

_glcontrol.RenderContextType = RenderContextType.NativeWindow; _glcontrol.RenderTrigger = RenderTrigger.TimerBased; _glcontrol.OpenGLVersion = SharpGL.Version.OpenGLVersion.OpenGL4_4;

When the Window is undocked the OpenGLControl become White and I can't restore the control over the component.

Any idea in order to resolve this issue?

thank you very much [] docked_window udocked_window

(url)

GianlucaGrotto commented 3 years ago

I noted that OpenGLControl has different behaviors if I set RenderContextType property to DIBSection or NativeWindow. In the first case the window doesn't disappear while in the second case disappear .

very disappointing behavior. I partially solved recreating the Handle.

I need to investigate more.