[Bug]: "GL_Invalid_Operation" errors possibly caused by bad Fabric Lnet class references
CSMMaster opened this issue ยท 0 comments
I have confirmed that ...
- tacz is up to date
- unable to reproduce without tacz
Minecraft and modloader version
Fabric 0.16.9
tac version
tacz-fabric-1.20.1-1.0.2-hotfix2-release
Related Mods
Potential contributing mods have been removed. No impact on reported error. Error is only fixed when TacZ is not installed.
Description
This error spams the client console when a scope of any kind is in the player's hand - "[Thread-56/INFO] OpenGL debug message: id=1282, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_OPERATION error generated. Depth formats do not match.'"
I have tested with scopes, and guns with scopes attached in the player hand. All scopes type items generate this error. The error only generates when the item is in the player's hand. It does not generate with in the inventory, or simply placed in the hotbar.
I have reviewed the mod files, and found a possible contributing factor. It seems the "tacz-fabric-1.20.1-refmap.json" file calls for some Fabric Lnet classes that do not exist. These are tagged as "FFLnet" classes, and found at Line 42 and down. The one that I feel is causing this error relates to code called by Line 159 "HeldItemRendererMixin" where it calls for "FFLnet/minecraft/class_1268". On the Fabric Wiki, this class does not exist - https://maven.fabricmc.net/docs/yarn-21w05b+build.11/net/minecraft/util/Hand.html.
It may be worthwhile to confirm other classes that need to be updated/repaired.
Step to reproduce
Error is reproduced every time a scope or weapon with a scope attached is in the players hand
Logs & Crash reports
No response