fixed stencil state leaking
This commit is contained in:
@@ -144,6 +144,9 @@ public class IrisVoxyRenderPipeline extends AbstractRenderPipeline {
|
|||||||
this.fbTranslucent.getDepthTex().id, sourceFrameBuffer,
|
this.fbTranslucent.getDepthTex().id, sourceFrameBuffer,
|
||||||
viewport, new Matrix4f(viewport.vanillaProjection).mul(viewport.modelView));
|
viewport, new Matrix4f(viewport.vanillaProjection).mul(viewport.modelView));
|
||||||
glColorMask(true, true, true, true);
|
glColorMask(true, true, true, true);
|
||||||
|
} else {
|
||||||
|
// normally disabled by AbstractRenderPipeline but since we are skipping it we do it here
|
||||||
|
glDisable(GL_STENCIL_TEST);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user