diff --git a/common/src/main/kotlin/fr/username404/snowygui/utils/RenderingUtil.kt b/common/src/main/kotlin/fr/username404/snowygui/utils/RenderingUtil.kt index 923439d..b13588e 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/utils/RenderingUtil.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/utils/RenderingUtil.kt @@ -14,6 +14,7 @@ import fr.username404.snowygui.gui.feature.Colors import fr.username404.snowygui.gui.hextoRGB import net.minecraft.client.Minecraft import net.minecraft.client.renderer.RenderPipelines +import java.util.OptionalDouble import java.util.OptionalInt object RenderingUtil { @@ -59,7 +60,9 @@ object RenderingUtil { encoder.createRenderPass( { name }, renderTarget.colorTextureView!!, - OptionalInt.empty() + OptionalInt.empty(), + renderTarget.depthTextureView!!, + OptionalDouble.empty() ).use { renderPass -> encoder.inRenderPass = false; RenderSystem.getDevice().createBuffer(