Merge branch 'distortion_clear' into 'master'

distortion - make sure color mask is enabled for clear to have an effect (#8082)

See merge request OpenMW/openmw!4294
pull/3236/head
psi29a 5 months ago
commit 6cc2b8de27

@ -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);

Loading…
Cancel
Save