Use GTNHLib MemoryUtils instead of the builtin compat ones (#853)

This commit is contained in:
Raven Szewczyk authored and GitHub committed 2025-01-26 11:20:43 -08:00
1 parent 9029182353
commit 7e2399714c
33 files changed
+256 -1011

No files matched your search

@@ -1,6 +1,8 @@
package net.coderbot.iris.rendertarget;
import com.gtnewhorizons.angelica.compat.lwjgl.MemoryStack;
import static com.gtnewhorizon.gtnhlib.bytebuf.MemoryStack.*;
import com.gtnewhorizon.gtnhlib.bytebuf.MemoryStack;
import com.gtnewhorizons.angelica.glsm.GLStateManager;
import com.gtnewhorizons.angelica.glsm.RenderSystem;
import lombok.Getter;
@@ -41,7 +43,7 @@ public class RenderTarget {
this.width = builder.width;
this.height = builder.height;
try (MemoryStack stack = MemoryStack.stackPush()) {
try (MemoryStack stack = stackPush()) {
IntBuffer textures = stack.mallocInt(2);
GL11.glGenTextures(textures);