mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Polish interaction between windowing, input and rendering
- Adapt GL make/release API to the current architecture. - Fix DisplayServer being locked while dispatching input (prevent deadlocks).
This commit is contained in:
parent
1b104ffcd8
commit
c28f5901c7
22 changed files with 34 additions and 112 deletions
|
@ -356,8 +356,7 @@ void RenderingServerDefault::_thread_callback(void *_instance) {
|
|||
void RenderingServerDefault::_thread_loop() {
|
||||
server_thread = Thread::get_caller_id();
|
||||
|
||||
DisplayServer::get_singleton()->make_rendering_thread();
|
||||
|
||||
DisplayServer::get_singleton()->gl_window_make_current(DisplayServer::MAIN_WINDOW_ID); // Move GL to this thread.
|
||||
_init();
|
||||
|
||||
draw_thread_up.set();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue