mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 22:55:29 +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
|
internal sealed class DummyGLContext : IGLContext
|
||||||
{
|
{
|
||||||
WindowInfo info = new WindowInfo();
|
WindowInfo info = new WindowInfo();
|
||||||
DisplayMode mode = new DisplayMode();
|
DisplayMode mode;
|
||||||
|
bool vsync;
|
||||||
|
|
||||||
|
#region --- Constructors ---
|
||||||
|
|
||||||
|
public DummyGLContext(DisplayMode m) { mode = m; }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region --- IGLContext Members ---
|
#region --- IGLContext Members ---
|
||||||
|
|
||||||
|
@ -34,7 +41,7 @@ namespace OpenTK.Platform
|
||||||
public IntPtr GetAddress(string function) { return IntPtr.Zero; }
|
public IntPtr GetAddress(string function) { return IntPtr.Zero; }
|
||||||
public IEnumerable<DisplayMode> GetDisplayModes() { return null; }
|
public IEnumerable<DisplayMode> GetDisplayModes() { return null; }
|
||||||
|
|
||||||
public bool VSync { get { return false; } set { } }
|
public bool VSync { get { return vsync; } set { vsync = value; } }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue