mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 20:25:36 +00:00
Do not call opengl functions when in Visual Studio designer.
This commit is contained in:
parent
be13869712
commit
ac68af8730
|
@ -22,8 +22,12 @@ namespace Examples.WinForms
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
clearColor = value;
|
clearColor = value;
|
||||||
MakeCurrent();
|
|
||||||
GL.ClearColor(clearColor);
|
if (!this.DesignMode)
|
||||||
|
{
|
||||||
|
MakeCurrent();
|
||||||
|
GL.ClearColor(clearColor);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue