[PR #3771] [MERGED] Linux: OpenGL falls back when TAA pipeline cannot compile #5207

Closed
opened 2026-11-03 05:10:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3771
Author: @elythepreciouscat
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: fix/linux-opengl-taa


📝 Commits (1)

  • 1cb3aa5 Linux: OpenGL falls back when TAA pipeline cannot compile

📊 Changes

2 files changed (+129 additions, -52 deletions)

View changed files

📝 crates/horizon-client-render/src/gfx.rs (+1 -0)
📝 crates/horizon-client-render/src/gfx/world_post.rs (+128 -52)

📄 Description

🤖 Opened by ElyTheCat's AI agent (Antigravity), not by ElyTheCat directly.

What and why

The OpenGL backend's GLSL translator (naga) does not support textureLoad from depth textures. When starting on OpenGL (such as on Linux with an Intel HD 4000 via Mesa crocus), world_post::Post::new panicked while creating the fs_taa render pipeline:

Internal error in ShaderStages(FRAGMENT) shader: WGSL `textureLoad` from depth textures is not supported in GLSL

crashing the game during renderer startup before reaching the title screen.

TAA pipeline creation is now wrapped in an error scope (matching the pattern used by animate.rs for animated sprite compute pipelines). When the device cannot compile the TAA shader, a warning is logged (Horizon renderer: temporal anti-aliasing unavailable (...)) and TAA is disabled, allowing the world post pass to fall back to FXAA (if enabled) or direct presentation without crashing.

Self-check

pr_ready (tools/pr_ready.py --quick on omarchy, against origin/main at 84c5e0b63, 3 min 16 s)

Check Result
Scope ✅ 2 files, +129 −52
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 416 passed (1 min 0 s)
rustfmt ✅ (12 s)
clippy ✅ (1 min 5 s)
tests: horizon-client-render ✅ 521 passed (41 s)
doc tests ✅ 0 passed (17 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with Google Antigravity


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3771 **Author:** [@elythepreciouscat](https://github.com/elythepreciouscat) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/linux-opengl-taa` --- ### 📝 Commits (1) - [`1cb3aa5`](https://github.com/horizon-rust/horizon/commit/1cb3aa5af618f131b76b8fe98a963ff1d22ce62e) Linux: OpenGL falls back when TAA pipeline cannot compile ### 📊 Changes **2 files changed** (+129 additions, -52 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/gfx.rs` (+1 -0) 📝 `crates/horizon-client-render/src/gfx/world_post.rs` (+128 -52) </details> ### 📄 Description > 🤖 Opened by ElyTheCat's AI agent (Antigravity), not by ElyTheCat directly. ## What and why The OpenGL backend's GLSL translator (naga) does not support `textureLoad` from depth textures. When starting on OpenGL (such as on Linux with an Intel HD 4000 via Mesa crocus), `world_post::Post::new` panicked while creating the `fs_taa` render pipeline: ``` Internal error in ShaderStages(FRAGMENT) shader: WGSL `textureLoad` from depth textures is not supported in GLSL ``` crashing the game during renderer startup before reaching the title screen. TAA pipeline creation is now wrapped in an error scope (matching the pattern used by `animate.rs` for animated sprite compute pipelines). When the device cannot compile the TAA shader, a warning is logged (`Horizon renderer: temporal anti-aliasing unavailable (...)`) and TAA is disabled, allowing the world post pass to fall back to FXAA (if enabled) or direct presentation without crashing. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on omarchy, against origin/main at 84c5e0b63, 3 min 16 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +129 −52 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 416 passed (1 min 0 s) | | rustfmt | ✅ (12 s) | | clippy | ✅ (1 min 5 s) | | tests: horizon-client-render | ✅ 521 passed (41 s) | | doc tests | ✅ 0 passed (17 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [Google Antigravity](https://deepmind.google) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:10:58 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5207
No description provided.