You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Linux: Fix build with use_sowrap=no and various warnings/errors
This commit is contained in:
@@ -5449,7 +5449,9 @@ DisplayServerX11::DisplayServerX11(const String &p_rendering_driver, WindowMode
|
||||
}
|
||||
#else
|
||||
#ifdef XKB_ENABLED
|
||||
xkb_loaded = true;
|
||||
bool xkb_loaded = true;
|
||||
xkb_loaded_v05p = true;
|
||||
xkb_loaded_v08p = true;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -5476,6 +5478,7 @@ DisplayServerX11::DisplayServerX11(const String &p_rendering_driver, WindowMode
|
||||
|
||||
r_error = OK;
|
||||
|
||||
#ifdef SOWRAP_ENABLED
|
||||
{
|
||||
if (!XcursorImageCreate || !XcursorImageLoadCursor || !XcursorImageDestroy || !XcursorGetDefaultSize || !XcursorGetTheme || !XcursorLibraryLoadImage) {
|
||||
// There's no API to check version, check if functions are available instead.
|
||||
@@ -5484,6 +5487,7 @@ DisplayServerX11::DisplayServerX11(const String &p_rendering_driver, WindowMode
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
for (int i = 0; i < CURSOR_MAX; i++) {
|
||||
cursors[i] = None;
|
||||
|
||||
Reference in New Issue
Block a user