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