Weird crash with gbuffers_terrain.vsh using core
Luracasmus opened this issue ยท 1 comments
Minecraft Version
Minecraft 1.19.4/Quilt Loader 0.19.0-beta.11
Iris Version
iris-mc1.19.4-1.6.0
Sodium Version
sodium-fabric-mc1.19.4-0.4.10+build.24.jar
Operating System
Windows 11
What is your GPU?
Nvidia Geforce GTX 1060 6GB
Java Version
Java 17 (bundled with Minecraft Launcher)
Reproduction Steps
- Make a shader pack with this gbuffers_terrain.fsh shader:
#version 460
void main() {}
and this gbuffers_terrain.vsh shader:
#version 460
in ivec2 vaUV2;
void main() {
gl_Position = vec4(0);
}
(no other files are needed)
-
Load the shader pack and observe that the game works
-
Add this to the vertex shader:
#version 460
float zero() {
return 0.0;
} // it doesn't crash when this isn't here????
in ivec2 vaUV2;
void main() {
gl_Position = vec4(0);
}
- Reload shaders
- The game crashes
You can download the working and crashing shaderpacks here:
Crash Report file and latest.log
Log: https://mclo.gs/L51xCmO
Crash report: https://mclo.gs/bWtAGQi
Additional context
I was only using Sodium and Iris, no other mods
It might have something to do with this: [Render thread/WARN]: Removing unused function zero