mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-08 01:19:12 +00:00
Fix regression in WebGL depth/stencil attachments (e.g. shadow maps).
This commit is contained in:
@@ -970,10 +970,15 @@ WebGLFramebuffer::FinalizeAttachments() const
|
||||
ColorAttachment(i).FinalizeAttachment(gl, LOCAL_GL_COLOR_ATTACHMENT0+i);
|
||||
}
|
||||
|
||||
DepthAttachment().FinalizeAttachment(gl, LOCAL_GL_DEPTH_ATTACHMENT);
|
||||
StencilAttachment().FinalizeAttachment(gl, LOCAL_GL_STENCIL_ATTACHMENT);
|
||||
DepthStencilAttachment().FinalizeAttachment(gl,
|
||||
LOCAL_GL_DEPTH_STENCIL_ATTACHMENT);
|
||||
if (DepthAttachment().IsDefined())
|
||||
DepthAttachment().FinalizeAttachment(gl, LOCAL_GL_DEPTH_ATTACHMENT);
|
||||
|
||||
if (StencilAttachment().IsDefined())
|
||||
StencilAttachment().FinalizeAttachment(gl, LOCAL_GL_STENCIL_ATTACHMENT);
|
||||
|
||||
if (DepthStencilAttachment().IsDefined())
|
||||
DepthStencilAttachment().FinalizeAttachment(gl,
|
||||
LOCAL_GL_DEPTH_STENCIL_ATTACHMENT);
|
||||
|
||||
FinalizeDrawAndReadBuffers(gl, ColorAttachment(0).IsDefined());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user