From 6d25ed7ecbc990b1cd495695b88a5792bc455e7d Mon Sep 17 00:00:00 2001 From: Moritz Zwerger Date: Tue, 24 Oct 2023 23:49:48 +0200 Subject: [PATCH] fix GuiMesh order --- .../java/de/bixilon/minosoft/gui/rendering/gui/mesh/GUIMesh.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/de/bixilon/minosoft/gui/rendering/gui/mesh/GUIMesh.kt b/src/main/java/de/bixilon/minosoft/gui/rendering/gui/mesh/GUIMesh.kt index 6df2d6048..e56a4ce45 100644 --- a/src/main/java/de/bixilon/minosoft/gui/rendering/gui/mesh/GUIMesh.kt +++ b/src/main/java/de/bixilon/minosoft/gui/rendering/gui/mesh/GUIMesh.kt @@ -30,6 +30,8 @@ class GUIMesh( data: FragmentedArrayFloatList, ) : Mesh(context, GUIMeshStruct, initialCacheSize = 40000, clearOnLoad = false, data = data), GUIVertexConsumer { private val whiteTexture = context.textures.whiteTexture + override val order = context.system.quadOrder + override fun addVertex(x: Float, y: Float, texture: ShaderTexture?, u: Float, v: Float, tint: RGBColor, options: GUIVertexOptions?) { addVertex(data, halfSize, x, y, texture ?: whiteTexture.texture, u, v, tint, options)