aboutsummaryrefslogtreecommitdiff
path: root/src/platform/opengl
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-23 22:39:47 +0200
committerhachem <im@hachem.wtf>2026-08-23 22:39:47 +0200
commit90ff03c2fdffc09ddb26bdc7e32c3968a6d274fb (patch)
tree2fdb1b6f54c4e380af43c75f1051935587a87faa /src/platform/opengl
parent5ea6c14c0e14bacee766ce1280ab2c71564e05ec (diff)
[feat]: wire in scene into the simulation engine
Diffstat (limited to 'src/platform/opengl')
-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); }