Skip to content

Commit

Permalink
android: actually use ReLinker
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
blaztinn authored and slouken committed Jun 20, 2024
1 parent b444e65 commit 6a2dd96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ protected String[] getLibraries() {
// Load the .so
public void loadLibraries() {
for (String lib : getLibraries()) {
SDL.loadLibrary(lib);
SDL.loadLibrary(lib, this);
}
}

Expand Down

0 comments on commit 6a2dd96

Please sign in to comment.