Merge pull request #68584 from Sauermann/fix-native-handle-crash
Fix gl_manager nullptr crash
This commit is contained in:
commit
cc178b9e4d
|
@ -1319,8 +1319,11 @@ int64_t DisplayServerX11::window_get_native_handle(HandleType p_handle_type, Win
|
|||
}
|
||||
#ifdef GLES3_ENABLED
|
||||
case OPENGL_CONTEXT: {
|
||||
if (gl_manager) {
|
||||
return (int64_t)gl_manager->get_glx_context(p_window);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
default: {
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue