Implement thread ownership change for RenderingDevice

This commit is contained in:
Pedro J. Estébanez
2024-10-21 20:56:42 +02:00
parent 44fa552343
commit d5d509bbd6
3 changed files with 8 additions and 0 deletions

View File

@ -7260,6 +7260,10 @@ void RenderingDevice::_bind_methods() {
BIND_ENUM_CONSTANT(DEBUG_PASS);
}
void RenderingDevice::make_current() {
render_thread_id = Thread::get_caller_id();
}
RenderingDevice::~RenderingDevice() {
finalize();