dwmkerr / dwmkerr/sharpgl

Disable WPF.OpenGLControl

Open
#169 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
804
Forks
294
Avg merge
3d 23h
Merged PRs (30d)
1

Description

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](https://user-images.githubusercontent.com/197660/77444784-2f320600-6de4-11ea-943e-e9eff1291d2a.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the WPF app-load failure with SharpGL.WPF.OpenGLControl present in XAML and disabled or hidden through app configuration. Trace when the control initializes and attempts shader assignment; done means the configured-disabled control remains in XAML without throwing during application startup.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
computer-graphics, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.