diff options
author | glassmancody.info <glassmancody.info@gmail.com> | 2022-08-12 11:45:40 -0700 |
---|---|---|
committer | glassmancody.info <glassmancody.info@gmail.com> | 2022-08-12 11:45:40 -0700 |
commit | f10e71cb5448f637baf1b54c9bf08fd7c6a38060 (patch) | |
tree | aacf975de17de7715f9748fe01fc0f0b592d2e77 | |
parent | 8e7ddc7c0de242c0af97f3d39e65acf2e3598dd5 (diff) |
MACARONI AND TODDpost_malone
-rw-r--r-- | apps/openmw/mwrender/transparentpass.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 |