GraphicsMode was not set when initializing a DummyGLContext with an explicit handle. Corrected now.

This commit is contained in:
the_fiddler 2011-12-06 21:54:20 +00:00
parent e2d31c78cb
commit 5d61e042a0

View file

@ -33,12 +33,12 @@ namespace OpenTK.Platform.Dummy
public DummyGLContext()
: this(new ContextHandle(new IntPtr(++handle_count)))
{
Mode = new GraphicsMode(new IntPtr(2), 32, 16, 0, 0, 0, 2, false);
}
public DummyGLContext(ContextHandle handle)
{
Handle = handle;
Mode = new GraphicsMode(new IntPtr(2), 32, 16, 0, 0, 0, 2, false);
}
#endregion