diff --git a/src/main/java/net/vulkanmod/mixin/render/GlStateManagerM.java b/src/main/java/net/vulkanmod/mixin/render/GlStateManagerM.java index fb460b49c..594a3cfaf 100644 --- a/src/main/java/net/vulkanmod/mixin/render/GlStateManagerM.java +++ b/src/main/java/net/vulkanmod/mixin/render/GlStateManagerM.java @@ -178,6 +178,8 @@ public static int _getTexLevelParameter(int i, int j, int k) { @Overwrite(remap = false) public static void _pixelStore(int pname, int param) { //Used during upload to set copy offsets + RenderSystem.assertOnRenderThreadOrInit(); + GlTexture.pixelStoreI(pname, param); } /**