Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force never using RENDER_SEPARATE_THREAD because it's broken on switch #25

Merged
merged 1 commit into from
Jul 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions platform/switch/os_switch.cpp
Original file line number Diff line number Diff line change
@@ -233,6 +233,13 @@ OS::VideoMode OS_Switch::get_video_mode(int p_screen) const {

void OS_Switch::get_fullscreen_mode_list(List<OS::VideoMode> *p_list, int p_screen) const {}

OS::RenderThreadMode OS_Switch::get_render_thread_mode() const {
if (OS::get_render_thread_mode() == OS::RenderThreadMode::RENDER_SEPARATE_THREAD) {
return OS::RENDER_THREAD_SAFE;
}
return OS::get_render_thread_mode();
}

int OS_Switch::get_current_video_driver() const {
return video_driver_index;
}
1 change: 1 addition & 0 deletions platform/switch/os_switch.h
Original file line number Diff line number Diff line change
@@ -73,6 +73,7 @@ class OS_Switch : public OS {
virtual void set_video_mode(const VideoMode &p_video_mode, int p_screen);
virtual VideoMode get_video_mode(int p_screen) const;
virtual void get_fullscreen_mode_list(List<VideoMode> *p_list, int p_screen) const;
OS::RenderThreadMode get_render_thread_mode() const;

virtual int get_current_video_driver() const;
virtual Size2 get_window_size() const;