[GH-ISSUE #3760] OpenGL backend crashes on AMD Radeon HD 7400M during pipeline creation #1075

Closed
opened 2026-11-02 15:44:04 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @aTimmYm on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3760

Description

When I select OpenGL as the graphics API, Horizon detects my AMD Radeon HD 7400M and successfully initializes the graphics device, but then crashes while creating the render pipelines.

The crash happens before the game reaches the title screen. The relevant error from the crash report is:

wgpu error: Validation Error

Caused by:
  In Device::create_render_pipeline, label = 'Horizon post'
    Internal error in ShaderStages(FRAGMENT) shader:
    WGSL `textureLoad` from depth textures is not supported in GLSL

Steps to reproduce

  1. Launch Horizon.
  2. Select OpenGL as the graphics API.
  3. Restart the game if required.
  4. Launch Minecraft.

Expected behavior

Horizon should initialize the OpenGL renderer and reach the title screen, allowing the game to use the Radeon GPU on systems without Vulkan or DirectX 12 support.

Actual behavior

Horizon detects the Radeon GPU and initializes the OpenGL device, but crashes while creating the Horizon post render pipeline because the fragment shader cannot be translated to GLSL.

Environment

  • Horizon version: Nightly 2026-10-29 · 5e391eb
  • Minecraft version: 26.3
  • Operating system: Windows 10 x64, build 19045.5435
  • CPU: Intel Core i7-2620M
  • RAM: 8 GB
  • GPU: AMD Radeon HD 7400M Series (AMD Radeon HD 6470m)
  • OpenGL version: 4.5.13417 Core Profile
  • AMD driver version: 15.301.1901.0 (2016-02-26)
  • Graphics backend: OpenGL (Gl, Other)

Additional context

With the graphics API set to Auto, the game starts, but performance is extremely poor. The log shows that Vulkan surface creation fails, after which Horizon selects the Microsoft Basic Render Driver through DirectX 12:

Horizon renderer: trying DirectX 12
(Vulkan surface: Failed to create surface for any enabled backend: {})

Horizon renderer: Microsoft Basic Render Driver (Dx12, Cpu)

This appears to result in software rendering rather than hardware acceleration through my Radeon GPU.

Selecting OpenGL correctly detects the Radeon, but the shader translation error prevents the game from starting. Therefore, neither configuration currently provides a usable experience on my system.

Could this be fixed in Horizon's OpenGL rendering path, or is there a known workaround for this hardware?

crash-2026-10-29_17.07.15-client.txt

Originally created by @aTimmYm on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3760 ## Description When I select OpenGL as the graphics API, Horizon detects my AMD Radeon HD 7400M and successfully initializes the graphics device, but then crashes while creating the render pipelines. The crash happens before the game reaches the title screen. The relevant error from the crash report is: ```text wgpu error: Validation Error Caused by: In Device::create_render_pipeline, label = 'Horizon post' Internal error in ShaderStages(FRAGMENT) shader: WGSL `textureLoad` from depth textures is not supported in GLSL ``` ## Steps to reproduce 1. Launch Horizon. 2. Select OpenGL as the graphics API. 3. Restart the game if required. 4. Launch Minecraft. ## Expected behavior Horizon should initialize the OpenGL renderer and reach the title screen, allowing the game to use the Radeon GPU on systems without Vulkan or DirectX 12 support. ## Actual behavior Horizon detects the Radeon GPU and initializes the OpenGL device, but crashes while creating the `Horizon post` render pipeline because the fragment shader cannot be translated to GLSL. ## Environment - **Horizon version:** Nightly 2026-10-29 · `5e391eb` - **Minecraft version:** 26.3 - **Operating system:** Windows 10 x64, build 19045.5435 - **CPU:** Intel Core i7-2620M - **RAM:** 8 GB - **GPU:** AMD Radeon HD 7400M Series (AMD Radeon HD 6470m) - **OpenGL version:** 4.5.13417 Core Profile - **AMD driver version:** 15.301.1901.0 (2016-02-26) - **Graphics backend:** OpenGL (`Gl, Other`) ## Additional context With the graphics API set to `Auto`, the game starts, but performance is extremely poor. The log shows that Vulkan surface creation fails, after which Horizon selects the Microsoft Basic Render Driver through DirectX 12: ```text Horizon renderer: trying DirectX 12 (Vulkan surface: Failed to create surface for any enabled backend: {}) Horizon renderer: Microsoft Basic Render Driver (Dx12, Cpu) ``` This appears to result in software rendering rather than hardware acceleration through my Radeon GPU. Selecting OpenGL correctly detects the Radeon, but the shader translation error prevents the game from starting. Therefore, neither configuration currently provides a usable experience on my system. Could this be fixed in Horizon's OpenGL rendering path, or is there a known workaround for this hardware? [crash-2026-10-29_17.07.15-client.txt](https://github.com/user-attachments/files/34139883/crash-2026-10-29_17.07.15-client.txt)
Author
Owner

@levzzz5154 commented on GitHub (Oct 29, 2026):

🤖 Agent: (written by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 themselves.)

Partly fixed. The OpenGL crash is fixed by #3771 (merged 2026-10-29 17:00 UTC, commit 1cb3aa5af, "OpenGL falls back when TAA pipeline cannot compile"). In world_post.wgsl, fs_taa is the only shader that calls textureLoad on a depth texture. Its pipeline is now built inside an error scope, and when the backend can't compile it, TAA is turned off and the post pass falls back to FXAA. The change is in gfx/world_post.rs and isn't Linux-only, so Windows OpenGL gets it too. Nightly 5e391eb predates it.

Still open: with the graphics API on Auto, this machine gets Microsoft Basic Render Driver (DX12 on the CPU) after Vulkan surface creation fails, instead of OpenGL on the Radeon.

<!-- gh-comment-id:6504529096 --> @levzzz5154 commented on GitHub (Oct 29, 2026): 🤖 Agent: (written by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 themselves.) Partly fixed. The OpenGL crash is fixed by #3771 (merged 2026-10-29 17:00 UTC, commit 1cb3aa5af, "OpenGL falls back when TAA pipeline cannot compile"). In `world_post.wgsl`, `fs_taa` is the only shader that calls `textureLoad` on a depth texture. Its pipeline is now built inside an error scope, and when the backend can't compile it, TAA is turned off and the post pass falls back to FXAA. The change is in `gfx/world_post.rs` and isn't Linux-only, so Windows OpenGL gets it too. Nightly 5e391eb predates it. Still open: with the graphics API on Auto, this machine gets Microsoft Basic Render Driver (DX12 on the CPU) after Vulkan surface creation fails, instead of OpenGL on the Radeon.
Author
Owner

@aTimmYm commented on GitHub (Oct 30, 2026):

The TAA fallback works in Nightly 2026-10-29 · a305d38: the log reports that TAA is unavailable, then says the remaining pipelines are ready and the first frame is presented. However, the window turns black and closes shortly afterwards.

No Horizon crash-report was generated. Windows Reliability Monitor reports:

  • Faulting application: horizon-client.exe
  • Faulting module: atio6axx.dll, version 6.14.10.13417
  • Exception code: 0xc000041d
  • Fault offset: 0x0000000000407b90

The attached latest.log ends after the renderer presents the first frame. Could you advise whether you need any further diagnostics? I can provide the full log; no Horizon crash-report is available.

latest.log

<!-- gh-comment-id:6523418769 --> @aTimmYm commented on GitHub (Oct 30, 2026): The TAA fallback works in Nightly 2026-10-29 · a305d38: the log reports that TAA is unavailable, then says the remaining pipelines are ready and the first frame is presented. However, the window turns black and closes shortly afterwards. No Horizon crash-report was generated. Windows Reliability Monitor reports: - Faulting application: horizon-client.exe - Faulting module: atio6axx.dll, version 6.14.10.13417 - Exception code: 0xc000041d - Fault offset: 0x0000000000407b90 The attached latest.log ends after the renderer presents the first frame. Could you advise whether you need any further diagnostics? I can provide the full log; no Horizon crash-report is available. [latest.log](https://github.com/user-attachments/files/34183818/latest.log)
Author
Owner

@aTimmYm commented on GitHub (Nov 1, 2026):

I’m closing this issue because the pipeline creation error no longer prevents Horizon from continuing startup. The TAA shader translation error is still logged, but Horizon marks TAA as unavailable, finishes creating the remaining pipelines, and presents the first frame.

The game still exits shortly afterwards, so I’ll open a separate issue for the remaining launch failure and include the latest log and launcher exit code. I’m not assuming that the two problems have the same cause.

<!-- gh-comment-id:6563686485 --> @aTimmYm commented on GitHub (Nov 1, 2026): I’m closing this issue because the pipeline creation error no longer prevents Horizon from continuing startup. The TAA shader translation error is still logged, but Horizon marks TAA as unavailable, finishes creating the remaining pipelines, and presents the first frame. The game still exits shortly afterwards, so I’ll open a separate issue for the remaining launch failure and include the latest log and launcher exit code. I’m not assuming that the two problems have the same cause.
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#1075
No description provided.