promotional bannermobile promotional banner

Window Resize Fix (Iris & Distant Horizons)

Fixes Distant Horizons breaking after a window resize with Iris, and the world's depth buffer not following a replaced render target.
Back to Files

irisscalefix-1.3.1

File nameirisscalefix-1.3.1.jar
Uploader
mzgmzg
Uploaded
Aug 11, 2026
Downloads
83
Size
8.8 KB
Mod Loaders
NeoForge
File ID
8626217
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:window-resize-fix-iris-distant-horizons-1648773:8626217"

Learn more about Curse Maven

What's new

First release. Two depth-buffer fixes for Iris.

Distant Horizons stops drawing after any window resize, with no render-scaling mod involved, and stays broken until the world is reloaded: Iris's resize walk hangs Minecraft's depth texture on the Distant Horizons framebuffers, and the reconnect that would restore DH's own is guarded by a texture id that never changed. Fixed by clearing that remembered id so Iris re-attaches normally.

The world's depth does not follow a replaced main render target, so a render-scaling mod leaves colour buffers of one size against a depth buffer of another. Iris decides when to re-read the depth from a version counter that lives on the target object and cannot notice the object being replaced. Fixed by comparing texture ids and sizes instead of the counter.

This mod has no related projects