mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-02 20:51:06 +00:00
Do not call opengl functions when in Visual Studio designer.
This commit is contained in:
parent
1cb0fbce22
commit
ef3e344d68
|
@ -22,10 +22,14 @@ namespace Examples.WinForms
|
|||
set
|
||||
{
|
||||
clearColor = value;
|
||||
|
||||
if (!this.DesignMode)
|
||||
{
|
||||
MakeCurrent();
|
||||
GL.ClearColor(clearColor);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnPaint(PaintEventArgs e)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue