Skip to content

Commit

Permalink
[1.9.4] Patch nmemCalloc, potential fix for #139
Browse files Browse the repository at this point in the history
  • Loading branch information
3arthqu4ke committed Apr 5, 2024
1 parent 2da678f commit 437c709
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ public static void register(RedirectionManager manager) {
manager.redirect("Lorg/lwjgl/opengl/GL30;glCheckFramebufferStatus(I)I",
of(36053));

// blaze3d NativeImage
manager.redirect("Lorg/lwjgl/system/MemoryUtil;nmemAlloc(J)J",
of(1L));
// blaze3d NativeImage checks that values are != 0 for this function
manager.redirect("Lorg/lwjgl/system/MemoryUtil;nmemAlloc(J)J", of(1L));
manager.redirect("org/lwjgl/system/MemoryUtil;nmemCalloc(JJ)J", of(1L));

// TODO: because MemoryUtil and the Buffers are actually being used,
// redirect all methods inside those to return proper Buffers?
Expand Down

0 comments on commit 437c709

Please sign in to comment.