From f10e71cb5448f637baf1b54c9bf08fd7c6a38060 Mon Sep 17 00:00:00 2001 From: "glassmancody.info" Date: Fri, 12 Aug 2022 11:45:40 -0700 Subject: [PATCH] MACARONI AND TODD --- apps/openmw/mwrender/transparentpass.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/openmw/mwrender/transparentpass.cpp b/apps/openmw/mwrender/transparentpass.cpp index eee7d72ecd..f058256087 100644 --- a/apps/openmw/mwrender/transparentpass.cpp +++ b/apps/openmw/mwrender/transparentpass.cpp @@ -80,6 +80,9 @@ namespace MWRender else { opaqueFbo->apply(state, osg::FrameBufferObject::DRAW_FRAMEBUFFER); + state.glDrawBuffer(GL_NONE); + state.glReadBuffer(GL_NONE); + ext->glBlitFramebuffer(0, 0, tex->getTextureWidth(), tex->getTextureHeight(), 0, 0, tex->getTextureWidth(), tex->getTextureHeight(), GL_DEPTH_BUFFER_BIT, GL_NEAREST); } @@ -92,6 +95,8 @@ namespace MWRender return; opaqueFbo->apply(state, osg::FrameBufferObject::DRAW_FRAMEBUFFER); + state.glDrawBuffer(GL_NONE); + state.glReadBuffer(GL_NONE); // draw transparent post-pass to populate a postprocess friendly depth texture with alpha-clipped geometry