mojira.dev
MC-296043

Some uniforms don't get loaded in on certain GPUs

Some shader uniforms (in this case ScreenSize) get loaded in on some GPUs (Nvidia 4070 in my case), but don’t on others (RX 5700 and some intel iGPUs).

The attached resourcepack (made for 1.21.5) should make all text the classic red-green UV color, but on some devices it produces a full yellow image, because ScreenSize is (0, 0)

Linked issues

Attachments

Comments 8

Do you know what devices have the issue? This may aid in reproducing the issue

@[MOD] Greymagic27 Only thing I know is the ones I mentioned in the description.

The issue seems to be that the “unknown uniforms“ are missing the Uniform.glGetUniformLocation call to get the uniform location and just use the index instead in GLProgram.setupUniforms, which seems to not always be equal to each other.

someone made a mod which adds the GetUniformLocation call, which fixed it for them on macos they said https://github.com/Enchanted-Games/uniform-fix/tree/v1.0

Can confirm, but the provided pack shows as made for an earlier version of Minecraft so please provide an updated version when you can.

Can confirm, this happens for me with the test pack on Apple M4 pro

Can confirm the issue for AMD Radeon RX 9070 XT and that the mod does fix it

This seems to have been fixed in the latest snapshot 25w16a, it no longer happens for me on mac with an updated version of the test resourcepack (attatched)

[media]

BalintCsala

(Unassigned)

Community Consensus

Platform

Low

Rendering, Resource Packs

1.21.5

Retrieved