From 2420e46b449f4c8acdfe48c765ea52fc3e860de7 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 5 Jun 2016 19:14:33 -0300 Subject: vsync support -works on windows -may not work on X11, if so please fix -OSX does not seem to support disabling vsync --- drivers/gl_context/context_gl.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'drivers/gl_context') diff --git a/drivers/gl_context/context_gl.h b/drivers/gl_context/context_gl.h index 1ea3662ada..fd3bbee5de 100644 --- a/drivers/gl_context/context_gl.h +++ b/drivers/gl_context/context_gl.h @@ -52,7 +52,11 @@ public: virtual void swap_buffers()=0; virtual Error initialize()=0; - + + virtual void set_use_vsync(bool p_use)=0; + virtual bool is_using_vsync() const=0; + + ContextGL(); -- cgit v1.2.3