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 1

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

[media]

Lolo

(Unassigned)

Unconfirmed

(Unassigned)

26.2 Snapshot 5

Retrieved