diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-11-26 12:37:59 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-11-26 12:37:59 +0100 |
| commit | 6817e821af9d69363466025f17ee367cfaa4550e (patch) | |
| tree | 0ccee8a354141b7e5eefac83da657c030e1a9f9e /src/Fl_Gl_Window_Driver.H | |
| parent | 102437f1eedce8589d947bf8791d6d5f413d445b (diff) | |
STR 1373: adds vsync control to OpenGL contexts on macOS
Windows and X11 to follow, no idea about Wayland.
Diffstat (limited to 'src/Fl_Gl_Window_Driver.H')
| -rw-r--r-- | src/Fl_Gl_Window_Driver.H | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_Gl_Window_Driver.H b/src/Fl_Gl_Window_Driver.H index 839c5bc93..79f696905 100644 --- a/src/Fl_Gl_Window_Driver.H +++ b/src/Fl_Gl_Window_Driver.H @@ -69,6 +69,8 @@ public: virtual void swap_buffers() {} virtual void resize(int /*is_a_resize*/, int /*w*/, int /*h*/) {} virtual char swap_type(); + virtual void swap_interval(int) { } + virtual int swap_interval() { return -1; } virtual int flush_begin(char&) {return 0;} virtual void gl_hide_before(void *&) {} // the default implementation may be enough static Fl_Gl_Choice *find_begin(int m, const int *alistp); |
