mirror of
https://github.com/Eaglercraft-Archive/Eaglercraftx-1.8.8-src.git
synced 2025-12-14 04:58:46 +01:00
Fix linux driver bug with shaders on the desktop runtime
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user