Fix for texture being mistakenly turned off by Iris (#2072)

This commit is contained in:
Philip Xu authored and GitHub committed 2026-09-06 09:53:49 -07:00
1 parent f180894da7
commit 32d1c27b9c
3 files changed
+4

No files matched your search

@@ -29,6 +29,7 @@ import net.coderbot.iris.samplers.IrisSamplers;
import net.coderbot.iris.texture.pbr.PBRTextureManager;
import net.coderbot.iris.uniforms.SystemTimeUniforms;
import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap;
import org.lwjgl.opengl.GL11;
public class IrisGLSMBridge {
@@ -257,6 +258,7 @@ public class IrisGLSMBridge {
GLSMHooks.TEXTURE_UNIT_STATE.addListener(event -> {
if (!Iris.enabled) return;
if (event.cap != GL11.GL_TEXTURE_2D) return;
boolean updatePipeline = false;
if (event.unit == IrisSamplers.ALBEDO_TEXTURE_UNIT) {
StateTracker.INSTANCE.albedoSampler = event.enabled;