android: actually use ReLinker

When loading libraries the `SDL.mContext` is still `null`. This results in
relinker code path in `SDL.loadLibrary(...)` always throwing a null exception
and fallbacking to system loader.

Fix it by passing the context explicitly.

(cherry picked from commit 6a2dd96ac7)
This commit is contained in:
Blaž Tomažič authored and Sam Lantinga committed 2024-06-20 09:36:17 -07:00
1 parent 72d5f39e5c
commit 3b5f35138e
1 file changed
+1 -1
@@ -300,7 +300,7 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
// Load the .so
public void loadLibraries() {
for (String lib : getLibraries()) {
SDL.loadLibrary(lib);
SDL.loadLibrary(lib, this);
}
}