VSync now responds to changes. Contains a true DisplayMode. New constructor.

This commit is contained in:
the_fiddler 2007-10-15 11:16:20 +00:00
parent 85ced6d7ed
commit 2922a8c054

View file

@ -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<DisplayMode> GetDisplayModes() { return null; }
public bool VSync { get { return false; } set { } }
public bool VSync { get { return vsync; } set { vsync = value; } }
#endregion