aboutsummaryrefslogtreecommitdiff
path: root/src/platform/opengl/opengl_device.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/opengl/opengl_device.cpp')
-rw-r--r--src/platform/opengl/opengl_device.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/platform/opengl/opengl_device.cpp b/src/platform/opengl/opengl_device.cpp
index 8516a3c..82fdae1 100644
--- a/src/platform/opengl/opengl_device.cpp
+++ b/src/platform/opengl/opengl_device.cpp
@@ -230,6 +230,7 @@ namespace Donut::RHI
}
auto resize(int w, int h) -> void override { m_width = w; m_height = h; }
auto wait_idle() -> void override { glFinish(); }
+ auto set_vsync(bool enabled) -> void override { glfwSwapInterval(enabled ? 1 : 0); }
auto create_buffer(BufferType t, size_t size, const void* data) -> Ref<Buffer> override
{ return create_ref<GLBuffer>(t, size, data); }