mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-26 20:35:37 +00:00
033d4722af
Fixed a regression where the GLControl would try to instantiate a normal context inside the VS designer, instead of a dummy one.
27 lines
521 B
C#
27 lines
521 B
C#
using OpenTK.Graphics;
|
|
|
|
namespace OpenTK.Platform.Dummy
|
|
{
|
|
class DummyGLControl : IGLControl
|
|
{
|
|
#region IGLControl Members
|
|
|
|
public OpenTK.Graphics.GraphicsContext CreateContext()
|
|
{
|
|
return new GraphicsContext(null, null);
|
|
}
|
|
|
|
public bool IsIdle
|
|
{
|
|
get { return false; }
|
|
}
|
|
|
|
public IWindowInfo WindowInfo
|
|
{
|
|
get { return new DummyWindowInfo(); }
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|