1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

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();