Fix crash when calling get_video_adapter_* in a thread

co-authored-by: Clay John <claynjohn@gmail.com>
(cherry picked from commit 0a64abe891)
This commit is contained in:
univeous 2023-07-16 10:19:11 +09:00 committed by Yuri Sizov
parent dc1c3d03da
commit 7627337d63
2 changed files with 17 additions and 26 deletions

View file

@ -258,22 +258,10 @@ uint64_t RenderingServerDefault::get_rendering_info(RenderingInfo p_info) {
return RSG::utilities->get_rendering_info(p_info);
}
String RenderingServerDefault::get_video_adapter_name() const {
return RSG::utilities->get_video_adapter_name();
}
String RenderingServerDefault::get_video_adapter_vendor() const {
return RSG::utilities->get_video_adapter_vendor();
}
RenderingDevice::DeviceType RenderingServerDefault::get_video_adapter_type() const {
return RSG::utilities->get_video_adapter_type();
}
String RenderingServerDefault::get_video_adapter_api_version() const {
return RSG::utilities->get_video_adapter_api_version();
}
void RenderingServerDefault::set_frame_profiling_enabled(bool p_enable) {
RSG::utilities->capturing_timestamps = p_enable;
}