irisscalefix-1.3.1
Curse Maven Snippet
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 additional files

