Skip to content

Commit

Permalink
Hotfix backport of B3D state cache fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RogueLogix committed Mar 26, 2023
1 parent 88644d8 commit 83fc4ee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.19.2-0.1.0-beta.1.1
- ensure b3d state cache is always cleared, fixes interaction bug

# 1.19.2-0.1.0-beta.1
- update phosphophyllite (breaking changes)
- check phos version before attempting to use any faetures of phos
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ minorVersion=1
patchVersion=0
postfix=beta
postfixMajorVersion=1
postfixMinorVersion=
postfixMinorVersion=1

# purposely left blank
compatibility=
4 changes: 3 additions & 1 deletion src/main/java/net/roguelogix/quartz/internal/gl/GLCore.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package net.roguelogix.quartz.internal.gl;

import com.mojang.blaze3d.systems.RenderSystem;
import com.mojang.blaze3d.vertex.BufferUploader;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.math.Matrix4f;
import it.unimi.dsi.fastutil.objects.ObjectArrayList;
Expand Down Expand Up @@ -209,7 +210,8 @@ public void preTerrainSetup() {
public void preOpaque() {
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);


BufferUploader.invalidate();
glUseProgram(0);

glActiveTexture(MagicNumbers.GL.LIGHTMAP_TEXTURE_UNIT_GL);
Expand Down

0 comments on commit 83fc4ee

Please sign in to comment.