From 5c8e0408e72b8d421696829eb4c1d682f34de4d8 Mon Sep 17 00:00:00 2001 From: eaglercraft Date: Mon, 11 Nov 2024 13:28:51 -0800 Subject: [PATCH] Fix linux driver bug with shaders on the desktop runtime --- .../v1_8/opengl/ext/deferred/EaglerDeferredPipeline.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/lax1dude/eaglercraft/v1_8/opengl/ext/deferred/EaglerDeferredPipeline.java b/src/main/java/net/lax1dude/eaglercraft/v1_8/opengl/ext/deferred/EaglerDeferredPipeline.java index 75578b1..fb4d71f 100755 --- a/src/main/java/net/lax1dude/eaglercraft/v1_8/opengl/ext/deferred/EaglerDeferredPipeline.java +++ b/src/main/java/net/lax1dude/eaglercraft/v1_8/opengl/ext/deferred/EaglerDeferredPipeline.java @@ -3407,11 +3407,15 @@ public class EaglerDeferredPipeline { GlStateManager.enableDepth(); GlStateManager.depthFunc(GL_ALWAYS); GlStateManager.depthMask(true); + GlStateManager.colorMask(false, false, false, false); + _wglDrawBuffers(GL_NONE); GlStateManager.bindTexture(lightingHDRFramebufferDepthTexture); TextureCopyUtil.blitTextureDepth(); GlStateManager.disableDepth(); GlStateManager.depthFunc(GL_LEQUAL); GlStateManager.depthMask(false); + GlStateManager.colorMask(true, true, true, true); + _wglDrawBuffers(GL_BACK); }else { _wglBindFramebuffer(_GL_READ_FRAMEBUFFER, lightingHDRFramebuffer); _wglBindFramebuffer(_GL_DRAW_FRAMEBUFFER, null);