Added override for window_get_vsync_mode in display_server_web.cpp
This commit is contained in:
parent
5c2295ff53
commit
a932c5e81d
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue