Fix linux driver bug with shaders on the desktop runtime

This commit is contained in:
lax1dude 2024-11-11 13:08:13 -08:00
parent 208d536d5b
commit 70561d1694

View File

@ -3407,11 +3407,15 @@ public class EaglerDeferredPipeline {
GlStateManager.enableDepth(); GlStateManager.enableDepth();
GlStateManager.depthFunc(GL_ALWAYS); GlStateManager.depthFunc(GL_ALWAYS);
GlStateManager.depthMask(true); GlStateManager.depthMask(true);
GlStateManager.colorMask(false, false, false, false);
_wglDrawBuffers(GL_NONE);
GlStateManager.bindTexture(lightingHDRFramebufferDepthTexture); GlStateManager.bindTexture(lightingHDRFramebufferDepthTexture);
TextureCopyUtil.blitTextureDepth(); TextureCopyUtil.blitTextureDepth();
GlStateManager.disableDepth(); GlStateManager.disableDepth();
GlStateManager.depthFunc(GL_LEQUAL); GlStateManager.depthFunc(GL_LEQUAL);
GlStateManager.depthMask(false); GlStateManager.depthMask(false);
GlStateManager.colorMask(true, true, true, true);
_wglDrawBuffers(GL_BACK);
}else { }else {
_wglBindFramebuffer(_GL_READ_FRAMEBUFFER, lightingHDRFramebuffer); _wglBindFramebuffer(_GL_READ_FRAMEBUFFER, lightingHDRFramebuffer);
_wglBindFramebuffer(_GL_DRAW_FRAMEBUFFER, null); _wglBindFramebuffer(_GL_DRAW_FRAMEBUFFER, null);