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:
parent
54c76203a7
commit
24452e2c3a
@ -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…
x
Reference in New Issue
Block a user