Skip to content

Commit 1502f63

Browse files
committed
Add missing gl mixin
1 parent 7a1e520 commit 1502f63

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/main/java/net/vulkanmod/mixin/compatibility/gl/GL11M.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import net.vulkanmod.vulkan.Renderer;
55
import net.vulkanmod.vulkan.VRenderSystem;
66
import org.lwjgl.opengl.GL11;
7+
import org.lwjgl.opengl.GL11C;
78
import org.lwjgl.system.MemoryUtil;
89
import org.lwjgl.system.NativeType;
910
import org.spongepowered.asm.mixin.Mixin;
@@ -100,6 +101,11 @@ public static void glClearColor(@NativeType("GLfloat") float red, @NativeType("G
100101
VRenderSystem.setClearColor(red, green, blue, alpha);
101102
}
102103

104+
@Overwrite(remap = false)
105+
public static void glDepthFunc(@NativeType("GLenum") int func) {
106+
VRenderSystem.depthFunc(func);
107+
}
108+
103109
/**
104110
* @author
105111
* @reason

src/main/resources/vulkanmod.mixins.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"chunk.VisibilitySetMixin",
2222

2323
"compatibility.gl.GL11M",
24+
"compatibility.gl.GL14M",
2425
"compatibility.gl.GL15M",
2526
"compatibility.gl.GL30M",
2627

0 commit comments

Comments
 (0)