From 2857ead023161a0a4c55cd765ed9be4a93824332 Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Wed, 9 Oct 2024 14:36:26 +0200 Subject: [PATCH] SceneViewport - Disable blend when rendering debug graphics --- PCK-Studio/Rendering/SceneViewport.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PCK-Studio/Rendering/SceneViewport.cs b/PCK-Studio/Rendering/SceneViewport.cs index a62a926d..72408d2b 100644 --- a/PCK-Studio/Rendering/SceneViewport.cs +++ b/PCK-Studio/Rendering/SceneViewport.cs @@ -529,7 +529,7 @@ namespace PckStudio.Rendering { #if DEBUG d_debugLabel.Text = Camera.ToString(); - GL.BlendFunc(BlendingFactor.SrcColor, BlendingFactor.SrcColor); + GL.Disable(EnableCap.Blend); GL.DepthMask(false); GL.DepthFunc(DepthFunction.Always); GL.Enable(EnableCap.PointSmooth); @@ -567,7 +567,7 @@ namespace PckStudio.Rendering } GL.DepthMask(true); GL.DepthFunc(DepthFunction.Less); - GL.BlendFunc(BlendingFactor.SrcAlpha, BlendingFactor.OneMinusSrcAlpha); + GL.Enable(EnableCap.Blend); #endif }