1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-30 16:20:21 +00:00

distortion - make sure color mask is enabled for clear to have an effect

This commit is contained in:
Cody Glassman 2024-08-02 11:33:46 -07:00
parent 54c76203a7
commit 24452e2c3a

View File

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