dwmkerr / sharpgl

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

Disable WPF.OpenGLControl #169

Open sipsorcery opened 4 years ago

sipsorcery commented 4 years ago

I am using the SharpGL.WPF.OpenGLControl in my app and some users are reporting it's failing to load when attempting to assign the shader program. While I try and track it down I'm attempting to disable the control with an app config setting. The problem I've got is that even if the control is disabled and hidden I get an exception as soon as the app is loaded. Is there any way to disable the control without having to remove it from the XAML?

Annotation 2020-03-24 152740