Skip to content

Commit

Permalink
Choose a better injection point that doesn't conflict with shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
makamys committed Nov 11, 2023
1 parent ff03781 commit 390a8fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// Note for testing this: the issue only happens if the -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump JVM flag is set.
@Mixin(Tessellator.class)
abstract class MixinTessellator {
@Inject(method = "draw", at = @At(value = "INVOKE", target = "Lorg/lwjgl/opengl/GL11;glTexCoordPointer(IILjava/nio/FloatBuffer;)V", ordinal = 0))
@Inject(method = "draw", at = @At(value = "HEAD"))
private void setClientActiveTextureToDefault(CallbackInfoReturnable<Integer> cir) {
OpenGlHelper.setClientActiveTexture(OpenGlHelper.defaultTexUnit);
}
Expand Down

0 comments on commit 390a8fd

Please sign in to comment.