Merge pull request #77719 from hlutor/remove_get_vsync_warn_web
Override window_get_vsync_mode in DisplayServerWeb to prevent warning spam
This commit is contained in:
commit
b96cc5eb3e
2 changed files with 6 additions and 0 deletions
|
@ -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 a new issue