From 24452e2c3ab602048c7a48a3e0a163d3ef5709ea Mon Sep 17 00:00:00 2001 From: Cody Glassman Date: Fri, 2 Aug 2024 11:33:46 -0700 Subject: [PATCH] distortion - make sure color mask is enabled for clear to have an effect --- apps/openmw/mwrender/distortion.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/openmw/mwrender/distortion.cpp b/apps/openmw/mwrender/distortion.cpp index ed90944245..5df2bfb703 100644 --- a/apps/openmw/mwrender/distortion.cpp +++ b/apps/openmw/mwrender/distortion.cpp @@ -24,6 +24,8 @@ namespace MWRender glViewport(0, 0, tex->getTextureWidth(), tex->getTextureHeight()); glClearColor(0.0, 0.0, 0.0, 1.0); + glColorMask(true, true, true, true); + state->haveAppliedAttribute(osg::StateAttribute::Type::COLORMASK); glClear(GL_COLOR_BUFFER_BIT); bin->drawImplementation(renderInfo, previous);