mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 06:35:30 +00:00
VSync now responds to changes. Contains a true DisplayMode. New constructor.
This commit is contained in:
parent
85ced6d7ed
commit
2922a8c054
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue