mojira.dev
MC-307799

Vulkan does not load shaders when there are comments at the beginning of the file

Steps to reproduce the bug:

  1. Try loading the shaders with OpenGL

  2. Try loading the shaders with Vulkan

This error occurs with Vulkan:

[Render thread/ERROR]: Couldn't compile FRAGMENT shader minecraft:core/gui: Couldn't parse GLSL: 0:1: error: '#version' : must occur first in shader

even though the comment should just be ignored

Attachments

Comments 2

Thank you for helping us improve Minecraft! We saved your files:

[media]

Thank you for your report!
After consideration, the issue is being closed as Won't Fix.

Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behaviour, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.

If you'd like to post a suggestion or give further feedback, please visit the Minecraft Feedback Site or choose a link below.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Lolo

(Unassigned)

Confirmed

Platform G

Low

Rendering

26.2 Snapshot 5

Retrieved