From 5d61e042a00f5b346ce31c475d0265c9cd09445c Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 6 Dec 2011 21:54:20 +0000 Subject: [PATCH] GraphicsMode was not set when initializing a DummyGLContext with an explicit handle. Corrected now. --- Source/OpenTK/Platform/Dummy/DummyGLContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/Dummy/DummyGLContext.cs b/Source/OpenTK/Platform/Dummy/DummyGLContext.cs index 4280d400..7c270bf1 100644 --- a/Source/OpenTK/Platform/Dummy/DummyGLContext.cs +++ b/Source/OpenTK/Platform/Dummy/DummyGLContext.cs @@ -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