From 90ff03c2fdffc09ddb26bdc7e32c3968a6d274fb Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 23 Aug 2026 22:39:47 +0200 Subject: [feat]: wire in scene into the simulation engine --- src/platform/opengl/opengl_device.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/platform/opengl/opengl_device.cpp') 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 override { return create_ref(t, size, data); } -- cgit v1.3