Skip to content

Commit

Permalink
Restore a function removed since LWJGL 3.2.1 that the popular Sodium mod
Browse files Browse the repository at this point in the history
for Minecraft uses

From Peter Hessler (phessler@)
  • Loading branch information
kmosiejczuk committed Jul 24, 2021
1 parent 8874e32 commit 3b9d8ce
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,13 @@ public static void memFree(@Nullable Buffer ptr) {
}
}

/** {@code PointerBuffer} version of {@link #memFree}. */
public static void memFree(@Nullable PointerBuffer ptr) {
if (ptr != null) {
nmemFree(ptr.address);
}
}

/** {@code CustomBuffer} version of {@link #memFree}. */
public static void memFree(@Nullable CustomBuffer<?> ptr) {
if (ptr != null) {
Expand Down

0 comments on commit 3b9d8ce

Please sign in to comment.