Do not call opengl functions when in Visual Studio designer.

This commit is contained in:
the_fiddler 2008-03-24 13:27:18 +00:00
parent 1cb0fbce22
commit ef3e344d68

View file

@ -22,8 +22,12 @@ namespace Examples.WinForms
set
{
clearColor = value;
MakeCurrent();
GL.ClearColor(clearColor);
if (!this.DesignMode)
{
MakeCurrent();
GL.ClearColor(clearColor);
}
}
}