Fix optifine 1.16 support

This commit is contained in:
James Seibel
2024-04-30 18:57:07 -05:00
parent c83140a2d0
commit 8ecd5dd9cb
2 changed files with 5 additions and 4 deletions
@@ -57,6 +57,9 @@ import org.apache.logging.log4j.LogManager;
import org.lwjgl.opengl.GL32;
import java.awt.*;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.time.Duration;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.ReentrantLock;
@@ -425,7 +428,7 @@ public class LodRenderer
combinedMatrix.multiply(renderEventParam.dhModelViewMatrix);
// Note: this can be very slow if a lot of boxes are being rendered
DebugRenderer.INSTANCE.render(combinedMatrix);
DebugRenderer.INSTANCE.render(combinedMatrix);
profiler.popPush("LOD cleanup");
}
@@ -591,8 +594,6 @@ public class LodRenderer
{
if (this.usingMcFrameBuffer && framebufferOverride == null)
{
// recreating the GL State at this point is necessary in order to get the correct depth texture
minecraftGlState.saveState();
if (ENABLE_DUMP_GL_STATE)
{
tickLogger.debug("Re-saving GL state due to Optifine presence: " + minecraftGlState);
@@ -28,7 +28,7 @@ import com.seibel.distanthorizons.coreapi.interfaces.dependencyInjection.IBindab
public interface ILightMapWrapper extends IBindable
{
// Returns the binded texture position
/** Returns the bound texture position */
void bind();
void unbind();