Added override for window_get_vsync_mode in display_server_web.cpp

This commit is contained in:
hlutor 2023-05-31 18:23:06 -06:00
parent 5c2295ff53
commit a932c5e81d
2 changed files with 6 additions and 0 deletions

View File

@ -1080,6 +1080,10 @@ bool DisplayServerWeb::can_any_window_draw() const {
return true;
}
DisplayServer::VSyncMode DisplayServerWeb::window_get_vsync_mode(WindowID p_vsync_mode) const {
return DisplayServer::VSYNC_ENABLED;
}
void DisplayServerWeb::process_events() {
Input::get_singleton()->flush_buffered_events();
if (godot_js_input_gamepad_sample() == OK) {

View File

@ -216,6 +216,8 @@ public:
virtual bool can_any_window_draw() const override;
virtual DisplayServer::VSyncMode window_get_vsync_mode(WindowID p_vsync_mode) const override;
// events
virtual void process_events() override;