From 50db20d8556a2d11920c97a760e16004897ba412 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Fri, 27 Jun 2025 01:01:25 +0200 Subject: [PATCH] Fix arguments to createRenderPass Signed-off-by: Username404-59 --- .../kotlin/fr/username404/snowygui/utils/RenderingUtil.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(