You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Check if GL manager exist to prevent crash when using multithreaded renderer with Vulkan.
This commit is contained in:
@@ -4175,13 +4175,17 @@ void DisplayServerX11::process_events() {
|
||||
|
||||
void DisplayServerX11::release_rendering_thread() {
|
||||
#if defined(GLES3_ENABLED)
|
||||
gl_manager->release_current();
|
||||
if (gl_manager) {
|
||||
gl_manager->release_current();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void DisplayServerX11::make_rendering_thread() {
|
||||
#if defined(GLES3_ENABLED)
|
||||
gl_manager->make_current();
|
||||
if (gl_manager) {
|
||||
gl_manager->make_current();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user