From 2922a8c054aa05e41e55d28d0bac86f0a7cbdeb4 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Mon, 15 Oct 2007 11:16:20 +0000 Subject: [PATCH] VSync now responds to changes. Contains a true DisplayMode. New constructor. --- Source/OpenTK/Platform/DummyGLContext.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Source/OpenTK/Platform/DummyGLContext.cs b/Source/OpenTK/Platform/DummyGLContext.cs index a46a3270..d5f0ad5d 100644 --- a/Source/OpenTK/Platform/DummyGLContext.cs +++ b/Source/OpenTK/Platform/DummyGLContext.cs @@ -16,7 +16,14 @@ namespace OpenTK.Platform internal sealed class DummyGLContext : IGLContext { WindowInfo info = new WindowInfo(); - DisplayMode mode = new DisplayMode(); + DisplayMode mode; + bool vsync; + + #region --- Constructors --- + + public DummyGLContext(DisplayMode m) { mode = m; } + + #endregion #region --- IGLContext Members --- @@ -34,7 +41,7 @@ namespace OpenTK.Platform public IntPtr GetAddress(string function) { return IntPtr.Zero; } public IEnumerable GetDisplayModes() { return null; } - public bool VSync { get { return false; } set { } } + public bool VSync { get { return vsync; } set { vsync = value; } } #endregion